Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001412/0.001412, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001491/0.001492, allocations: 192.1 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002074/0.002074, allocations: 283.5 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9292/0.9292, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 98.44 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1616, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002937/0.1645, allocations: 1.943 MB / 0.6835 GB, free: 5.508 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1657, allocations: 0.702 MB / 0.6842 GB, free: 4.801 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.208e-05/0.1658, allocations: 4 kB / 0.6842 GB, free: 4.797 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.166, allocations: 83.62 kB / 0.6843 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.1661, allocations: 91.58 kB / 0.6844 GB, free: 4.625 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.1666, allocations: 190.6 kB / 0.6845 GB, free: 4.441 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.1669, allocations: 263.4 kB / 0.6848 GB, free: 4.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1671, allocations: 73.86 kB / 0.6849 GB, free: 4.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1672, allocations: 115.7 kB / 0.685 GB, free: 4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1674, allocations: 155.5 kB / 0.6851 GB, free: 3.848 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.1674, allocations: 20 kB / 0.6851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1676, allocations: 91.92 kB / 0.6852 GB, free: 3.738 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.1677, allocations: 59.78 kB / 0.6853 GB, free: 3.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.1678, allocations: 107.3 kB / 0.6854 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.1681, allocations: 307 kB / 0.6857 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1681, allocations: 0 / 0.6857 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1681, allocations: 3.938 kB / 0.6857 GB, free: 3.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1681, allocations: 4 kB / 0.6857 GB, free: 3.266 MB / 494.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.0007525/0.1689, allocations: 0.5741 MB / 0.6863 GB, free: 2.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1689, allocations: 12.02 kB / 0.6863 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.169, allocations: 32.56 kB / 0.6863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.1695, allocations: 306.9 kB / 0.6866 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.1695, allocations: 12.38 kB / 0.6866 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.1695, allocations: 12.38 kB / 0.6866 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003679/0.1699, allocations: 227.2 kB / 0.6868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1699, allocations: 4 kB / 0.6868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.17, allocations: 4 kB / 0.6868 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.17, allocations: 4 kB / 0.6868 GB, free: 1.977 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.1702, allocations: 137 kB / 0.687 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007711/0.171, allocations: 0.6807 MB / 0.6876 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.1713, allocations: 170.4 kB / 0.6878 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.1715, allocations: 96.95 kB / 0.6879 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.1715, allocations: 4 kB / 0.6879 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.1718, allocations: 169.1 kB / 0.6881 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1718, allocations: 3.938 kB / 0.6881 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006197/0.1724, allocations: 373.5 kB / 0.6884 GB, free: 272 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.1725, allocations: 132.5 kB / 0.6885 GB, free: 108 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2635/0.436, allocations: 278.4 kB / 0.6888 GB, free: 18.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.4361, allocations: 31.55 kB / 0.6888 GB, free: 18.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.615e-05/0.4362, allocations: 155 kB / 0.689 GB, free: 18.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.005e-05/0.4363, allocations: 47.06 kB / 0.689 GB, free: 18.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.4364, allocations: 40.11 kB / 0.6891 GB, free: 18.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.4365, allocations: 339.7 kB / 0.6894 GB, free: 18.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.4368, allocations: 84.34 kB / 0.6895 GB, free: 18.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.437, allocations: 135 kB / 0.6896 GB, free: 17.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.4374, allocations: 243.2 kB / 0.6898 GB, free: 17.88 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4374, allocations: 0 / 0.6898 GB, free: 17.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006288/0.4381, allocations: 343 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.4381, allocations: 39.53 kB / 0.6902 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4381, allocations: 1.062 kB / 0.6902 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.4382, allocations: 3.656 kB / 0.6902 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.4383, allocations: 28.94 kB / 0.6902 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.4383, allocations: 1.062 kB / 0.6902 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.4385, allocations: 24.62 kB / 0.6903 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.4385, allocations: 11.31 kB / 0.6903 GB, free: 17.77 MB / 494.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.0001761/0.4387, allocations: 187.9 kB / 0.6904 GB, free: 17.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.4387, allocations: 29.2 kB / 0.6905 GB, free: 17.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.85e-05/0.4388, allocations: 32.89 kB / 0.6905 GB, free: 17.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.4388, allocations: 5.703 kB / 0.6905 GB, free: 17.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4388, allocations: 1.578 kB / 0.6905 GB, free: 17.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.4389, allocations: 2.125 kB / 0.6905 GB, free: 17.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.4391, allocations: 285.1 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.4392, allocations: 2.547 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.4393, allocations: 15.22 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4393, allocations: 4.562 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.4393, allocations: 7.875 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.4393, allocations: 1.688 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4393, allocations: 1.25 kB / 0.6908 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.44, allocations: 471 kB / 0.6913 GB, free: 17.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.4401, allocations: 103.9 kB / 0.6914 GB, free: 17.19 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.4401, allocations: 4.781 kB / 0.6914 GB, free: 17.19 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4402, allocations: 15.22 kB / 0.6914 GB, free: 17.19 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.4403, allocations: 24.97 kB / 0.6914 GB, free: 17.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.4404, allocations: 5.75 kB / 0.6914 GB, free: 17.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.4405, allocations: 206.4 kB / 0.6916 GB, free: 17.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4406, allocations: 0 / 0.6916 GB, free: 17.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.4408, allocations: 57.34 kB / 0.6917 GB, free: 17.09 MB / 494.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.000166/0.441, allocations: 133.8 kB / 0.6918 GB, free: 17 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004393/0.4415, allocations: 299.5 kB / 0.6921 GB, free: 16.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4415, allocations: 1.875 kB / 0.6921 GB, free: 16.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.4417, allocations: 181.8 kB / 0.6923 GB, free: 16.75 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.442, allocations: 34.31 kB / 0.6923 GB, free: 16.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.4429, allocations: 477.7 kB / 0.6927 GB, free: 16.49 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.4431, allocations: 0.7531 MB / 0.6935 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.664e-05/0.4431, allocations: 19.67 kB / 0.6935 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.4432, allocations: 22.2 kB / 0.6935 GB, free: 15.78 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4432, allocations: 3.609 kB / 0.6935 GB, free: 15.78 MB / 494.1 MB Notification: Performance of Templates: time 0.006721/0.4499, allocations: 2.818 MB / 0.6963 GB, free: 15.63 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)