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.001049/0.001049, allocations: 104.1 kB / 16.35 MB, free: 6.289 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.001047/0.001047, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.251/1.251, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002131, allocations: 305.6 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8871/0.8871, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 96.44 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1669, allocations: 86.97 MB / 0.6816 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003392/0.1703, allocations: 1.95 MB / 0.6835 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1716, allocations: 0.7137 MB / 0.6842 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.1717, allocations: 0 / 0.6842 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.1719, allocations: 79.64 kB / 0.6843 GB, free: 4.727 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1721, allocations: 103.5 kB / 0.6844 GB, free: 4.625 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005472/0.1726, allocations: 182.7 kB / 0.6845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003199/0.1729, allocations: 267.4 kB / 0.6848 GB, free: 4.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.1731, allocations: 69.88 kB / 0.6849 GB, free: 4.121 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.1733, allocations: 111.7 kB / 0.685 GB, free: 4.012 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.1735, allocations: 155.5 kB / 0.6851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.6e-05/0.1735, allocations: 24 kB / 0.6851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.1737, allocations: 91.92 kB / 0.6852 GB, free: 3.746 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.84e-05/0.1738, allocations: 51.84 kB / 0.6853 GB, free: 3.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1739, allocations: 107.3 kB / 0.6854 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.1742, allocations: 315 kB / 0.6857 GB, free: 3.281 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1743, allocations: 0 / 0.6857 GB, free: 3.281 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1743, allocations: 0 / 0.6857 GB, free: 3.281 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1743, allocations: 0 / 0.6857 GB, free: 3.281 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.0007847/0.1751, allocations: 0.5819 MB / 0.6862 GB, free: 2.645 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.1751, allocations: 8.031 kB / 0.6863 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.1752, allocations: 36.56 kB / 0.6863 GB, free: 2.602 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.1756, allocations: 294.9 kB / 0.6866 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.1757, allocations: 16.38 kB / 0.6866 GB, free: 2.262 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.1757, allocations: 16.38 kB / 0.6866 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.1761, allocations: 231.2 kB / 0.6868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1761, allocations: 0 / 0.6868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.1761, allocations: 8 kB / 0.6868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1761, allocations: 4 kB / 0.6868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.1764, allocations: 125 kB / 0.687 GB, free: 1.863 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007999/0.1772, allocations: 0.6808 MB / 0.6876 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.1775, allocations: 178.5 kB / 0.6878 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.1777, allocations: 92.83 kB / 0.6879 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.1777, allocations: 4 kB / 0.6879 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.178, allocations: 169 kB / 0.688 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.178, allocations: 0 / 0.688 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006385/0.1786, allocations: 375 kB / 0.6884 GB, free: 288 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/0.1787, allocations: 140.5 kB / 0.6885 GB, free: 116 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2529/0.4316, allocations: 275.7 kB / 0.6888 GB, free: 18.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.59e-05/0.4317, allocations: 31.39 kB / 0.6888 GB, free: 18.47 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.4318, allocations: 154.5 kB / 0.689 GB, free: 18.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.4318, allocations: 44.86 kB / 0.689 GB, free: 18.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.4319, allocations: 39.53 kB / 0.6891 GB, free: 18.37 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.432, allocations: 339.1 kB / 0.6894 GB, free: 18.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.4322, allocations: 85.22 kB / 0.6895 GB, free: 18.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.4324, allocations: 133.8 kB / 0.6896 GB, free: 18.01 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.4326, allocations: 242.1 kB / 0.6898 GB, free: 17.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4327, allocations: 0 / 0.6898 GB, free: 17.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004635/0.4331, allocations: 347.3 kB / 0.6901 GB, free: 17.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.4332, allocations: 38.62 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.4332, allocations: 5.719 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4332, allocations: 1.734 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.4333, allocations: 25.98 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.4333, allocations: 2.359 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.4335, allocations: 24.91 kB / 0.6902 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.4335, allocations: 12.48 kB / 0.6903 GB, free: 17.8 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.0001328/0.4336, allocations: 187.9 kB / 0.6904 GB, free: 17.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-05/0.4337, allocations: 28.72 kB / 0.6905 GB, free: 17.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.4337, allocations: 30.17 kB / 0.6905 GB, free: 17.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4337, allocations: 1.375 kB / 0.6905 GB, free: 17.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4337, allocations: 8.844 kB / 0.6905 GB, free: 17.64 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4337, allocations: 1.797 kB / 0.6905 GB, free: 17.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.434, allocations: 287.9 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.434, allocations: 2.656 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.602e-05/0.4341, allocations: 15.38 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4341, allocations: 6.062 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.4341, allocations: 7.625 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4341, allocations: 1.078 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4341, allocations: 5.312 kB / 0.6908 GB, free: 17.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.4348, allocations: 469.4 kB / 0.6913 GB, free: 17.33 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.4348, allocations: 100.8 kB / 0.6914 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.4349, allocations: 12.8 kB / 0.6914 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.435, allocations: 13.58 kB / 0.6914 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.4351, allocations: 22.45 kB / 0.6914 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.4351, allocations: 11.58 kB / 0.6914 GB, free: 17.22 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.4352, allocations: 199.4 kB / 0.6916 GB, free: 17.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4353, allocations: 1.156 kB / 0.6916 GB, free: 17.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.4355, allocations: 53.08 kB / 0.6917 GB, free: 17.11 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.000148/0.4357, allocations: 131.8 kB / 0.6918 GB, free: 17.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004246/0.4361, allocations: 298.2 kB / 0.6921 GB, free: 16.89 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4361, allocations: 0 / 0.6921 GB, free: 16.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.4363, allocations: 187 kB / 0.6922 GB, free: 16.78 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.4366, allocations: 33.66 kB / 0.6923 GB, free: 16.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008143/0.4374, allocations: 474 kB / 0.6927 GB, free: 16.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.4376, allocations: 0.7502 MB / 0.6935 GB, free: 15.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.221e-05/0.4377, allocations: 20.41 kB / 0.6935 GB, free: 15.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.4377, allocations: 18.66 kB / 0.6935 GB, free: 15.81 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4377, allocations: 3.938 kB / 0.6935 GB, free: 15.81 MB / 494.1 MB Notification: Performance of Templates: time 0.006134/0.4439, allocations: 2.827 MB / 0.6963 GB, free: 15.64 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)