Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001303/0.001303, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001567, allocations: 196.1 kB / 16.53 MB, free: 6.656 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.661/1.661, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.84/1.84, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 75.69 kB / 0.6715 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3617, allocations: 114.5 MB / 0.7834 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005778/0.3676, allocations: 1.939 MB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002041/0.3697, allocations: 0.7531 MB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.3699, allocations: 4 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.3704, allocations: 83.62 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.3706, allocations: 87.58 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008951/0.3715, allocations: 198.9 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.3719, allocations: 255.5 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.3722, allocations: 73.81 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.3724, allocations: 127.5 kB / 0.7868 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/0.3727, allocations: 147.5 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.01e-05/0.3727, allocations: 20 kB / 0.787 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.3729, allocations: 87.94 kB / 0.787 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3731, allocations: 59.77 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.3732, allocations: 111.3 kB / 0.7872 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.3738, allocations: 299.1 kB / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.3738, allocations: 0 / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.336e-06/0.3738, allocations: 0 / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.3738, allocations: 0 / 0.7875 GB, free: 9.258 MB / 0.6075 GB 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.001302/0.3752, allocations: 0.578 MB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/0.3752, allocations: 12.03 kB / 0.7881 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.3753, allocations: 28.56 kB / 0.7881 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000595/0.3759, allocations: 310.9 kB / 0.7884 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.376, allocations: 8.375 kB / 0.7884 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.376, allocations: 16.38 kB / 0.7884 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005252/0.3766, allocations: 231.2 kB / 0.7886 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3766, allocations: 0 / 0.7886 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.3766, allocations: 8 kB / 0.7886 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3767, allocations: 8 kB / 0.7886 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.377, allocations: 124.4 kB / 0.7888 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3782, allocations: 0.6846 MB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.3787, allocations: 166.6 kB / 0.7896 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.379, allocations: 104.9 kB / 0.7897 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.379, allocations: 0 / 0.7897 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.3795, allocations: 173 kB / 0.7899 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.3795, allocations: 0 / 0.7899 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0009535/0.3805, allocations: 366.9 kB / 0.7902 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.624e-05/0.3806, allocations: 140.5 kB / 0.7903 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.381, allocations: 282.5 kB / 0.7906 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.381, allocations: 33.7 kB / 0.7906 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.3812, allocations: 156.2 kB / 0.7908 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.3813, allocations: 43.45 kB / 0.7908 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.3814, allocations: 41.7 kB / 0.7909 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002437/0.3816, allocations: 334.8 kB / 0.7912 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.3819, allocations: 91.89 kB / 0.7913 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.3822, allocations: 133.1 kB / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.3827, allocations: 242.8 kB / 0.7916 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3828, allocations: 4.031 kB / 0.7916 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006896/0.3835, allocations: 341.2 kB / 0.792 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.77e-05/0.3835, allocations: 41.69 kB / 0.792 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3835, allocations: 4 kB / 0.792 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3836, allocations: 0 / 0.792 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.3837, allocations: 19.98 kB / 0.792 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.3838, allocations: 8.094 kB / 0.792 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.384, allocations: 27.83 kB / 0.7921 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.384, allocations: 4 kB / 0.7921 GB, free: 4.227 MB / 0.6075 GB 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.000257/0.3843, allocations: 198.2 kB / 0.7923 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.3843, allocations: 23.72 kB / 0.7923 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.3844, allocations: 33.81 kB / 0.7923 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3844, allocations: 4 kB / 0.7923 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3844, allocations: 4 kB / 0.7923 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3845, allocations: 0 / 0.7923 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.3848, allocations: 297.3 kB / 0.7926 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3848, allocations: 0 / 0.7926 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.385, allocations: 15.98 kB / 0.7926 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.385, allocations: 0 / 0.7926 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.385, allocations: 4 kB / 0.7926 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.385, allocations: 4 kB / 0.7926 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.385, allocations: 0 / 0.7926 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3861, allocations: 477.1 kB / 0.7931 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.3862, allocations: 96.8 kB / 0.7932 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/0.3863, allocations: 12 kB / 0.7932 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3864, allocations: 11.98 kB / 0.7932 GB, free: 2.969 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3865, allocations: 23.95 kB / 0.7932 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.3866, allocations: 8 kB / 0.7932 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002601/0.3869, allocations: 202 kB / 0.7934 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.274e-06/0.3869, allocations: 0 / 0.7934 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004988/0.3874, allocations: 63.83 kB / 0.7935 GB, free: 2.676 MB / 0.6075 GB 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.0002761/0.3877, allocations: 131.1 kB / 0.7936 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006742/0.3883, allocations: 298.6 kB / 0.7939 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3884, allocations: 4.188 kB / 0.7939 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003175/0.3887, allocations: 187.3 kB / 0.7941 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.3892, allocations: 36.75 kB / 0.7941 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.3906, allocations: 485 kB / 0.7946 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.391, allocations: 0.7514 MB / 0.7953 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001257/0.3912, allocations: 17.53 kB / 0.7953 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.3912, allocations: 23.44 kB / 0.7953 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.3912, allocations: 0 / 0.7953 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of Templates: time 0.009815/0.4011, allocations: 2.817 MB / 0.7981 GB, free: 13.89 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)