Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007376/0.007376, allocations: 103.4 kB / 15.74 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 196.3 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6247/0.6247, allocations: 95.48 MB / 365.4 MB, free: 9.758 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 74.08 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.2, allocations: 69.09 MB / 0.5711 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004613/0.2046, allocations: 1.939 MB / 0.573 GB, free: 6.363 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.2065, allocations: 0.7567 MB / 0.5737 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.2068, allocations: 4 kB / 0.5737 GB, free: 5.594 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.2072, allocations: 83.64 kB / 0.5738 GB, free: 5.512 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.2075, allocations: 91.52 kB / 0.5739 GB, free: 5.422 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008391/0.2083, allocations: 190.6 kB / 0.5741 GB, free: 5.238 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004962/0.2088, allocations: 267.4 kB / 0.5743 GB, free: 4.977 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.2091, allocations: 73.84 kB / 0.5744 GB, free: 4.902 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.2094, allocations: 115.7 kB / 0.5745 GB, free: 4.789 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003057/0.2097, allocations: 151.5 kB / 0.5746 GB, free: 4.641 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.2098, allocations: 20 kB / 0.5747 GB, free: 4.621 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.21, allocations: 95.92 kB / 0.5748 GB, free: 4.527 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2102, allocations: 59.77 kB / 0.5748 GB, free: 4.469 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.2104, allocations: 111.3 kB / 0.5749 GB, free: 4.359 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007148/0.2111, allocations: 307 kB / 0.5752 GB, free: 4.059 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.267e-05/0.2111, allocations: 3.984 kB / 0.5752 GB, free: 4.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.2111, allocations: 0 / 0.5752 GB, free: 4.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.2112, allocations: 0 / 0.5752 GB, free: 4.055 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001499/0.2127, allocations: 0.5702 MB / 0.5758 GB, free: 3.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.577e-05/0.2128, allocations: 15.98 kB / 0.5758 GB, free: 3.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.2129, allocations: 28.56 kB / 0.5758 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007917/0.2137, allocations: 302.9 kB / 0.5761 GB, free: 3.051 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.034e-05/0.2138, allocations: 16.38 kB / 0.5761 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.519e-05/0.2139, allocations: 16.38 kB / 0.5761 GB, free: 3.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.2144, allocations: 231.2 kB / 0.5764 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2144, allocations: 0 / 0.5764 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.2145, allocations: 4 kB / 0.5764 GB, free: 2.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.2145, allocations: 7.984 kB / 0.5764 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.2148, allocations: 132.3 kB / 0.5765 GB, free: 2.633 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.2161, allocations: 0.6768 MB / 0.5772 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004223/0.2165, allocations: 170.4 kB / 0.5773 GB, free: 1.723 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.2167, allocations: 101 kB / 0.5774 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.2167, allocations: 0 / 0.5774 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003518/0.2171, allocations: 177.1 kB / 0.5776 GB, free: 1.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 2.485e-06/0.2171, allocations: 0 / 0.5776 GB, free: 1.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008287/0.2179, allocations: 378.3 kB / 0.5779 GB, free: 1.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2181, allocations: 136.5 kB / 0.5781 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.2184, allocations: 278.6 kB / 0.5783 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.2185, allocations: 33.7 kB / 0.5784 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.2186, allocations: 148.3 kB / 0.5785 GB, free: 428 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/0.2187, allocations: 43.45 kB / 0.5786 GB, free: 384 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2188, allocations: 49.61 kB / 0.5786 GB, free: 328 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.219, allocations: 334.9 kB / 0.5789 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.2192, allocations: 91.83 kB / 0.579 GB, free: 15.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.2194, allocations: 133 kB / 0.5791 GB, free: 15.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.2198, allocations: 245.7 kB / 0.5794 GB, free: 15.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2198, allocations: 0 / 0.5794 GB, free: 15.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006267/0.2205, allocations: 330.9 kB / 0.5797 GB, free: 15.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.622e-05/0.2206, allocations: 38.62 kB / 0.5797 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.2206, allocations: 8.094 kB / 0.5797 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.2206, allocations: 0 / 0.5797 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.2208, allocations: 27.92 kB / 0.5798 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.2208, allocations: 0 / 0.5798 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.221, allocations: 23.83 kB / 0.5798 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.221, allocations: 8 kB / 0.5798 GB, free: 15.04 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000297/0.2213, allocations: 192.7 kB / 0.58 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.2214, allocations: 27.72 kB / 0.58 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.691e-05/0.2215, allocations: 37.81 kB / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.2215, allocations: 0 / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.2215, allocations: 3.938 kB / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2215, allocations: 0 / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.222, allocations: 297.3 kB / 0.5803 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.222, allocations: 0 / 0.5803 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.2221, allocations: 19.92 kB / 0.5803 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.2221, allocations: 0 / 0.5803 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.2222, allocations: 4 kB / 0.5803 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2222, allocations: 4 kB / 0.5803 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2222, allocations: 4 kB / 0.5803 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.2231, allocations: 466.3 kB / 0.5808 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.2232, allocations: 100.8 kB / 0.5809 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.283e-05/0.2233, allocations: 8 kB / 0.5809 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.2234, allocations: 16.05 kB / 0.5809 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.2235, allocations: 19.97 kB / 0.5809 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.2235, allocations: 11.98 kB / 0.5809 GB, free: 13.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002358/0.2238, allocations: 198 kB / 0.5811 GB, free: 13.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2238, allocations: 0 / 0.5811 GB, free: 13.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003628/0.2242, allocations: 60.03 kB / 0.5812 GB, free: 13.49 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003076/0.2245, allocations: 138.9 kB / 0.5813 GB, free: 13.35 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006321/0.2251, allocations: 303.2 kB / 0.5816 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.2251, allocations: 0 / 0.5816 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.2255, allocations: 191.3 kB / 0.5818 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.2259, allocations: 28.55 kB / 0.5818 GB, free: 12.81 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.2271, allocations: 473.3 kB / 0.5823 GB, free: 12.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.2275, allocations: 0.7514 MB / 0.583 GB, free: 11.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.012e-05/0.2276, allocations: 13.55 kB / 0.583 GB, free: 11.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.2277, allocations: 23.44 kB / 0.583 GB, free: 11.51 MB / 462.1 MB Notification: Performance of SimCode: time 2.204e-06/0.2277, allocations: 4 kB / 0.583 GB, free: 11.5 MB / 462.1 MB Notification: Performance of Templates: time 0.008402/0.2361, allocations: 2.839 MB / 0.5858 GB, free: 8.688 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)