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.001529/0.001529, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002176/0.002176, allocations: 193.6 kB / 16.25 MB, free: 6.625 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.651/1.651, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.825/1.825, allocations: 292.3 MB / 0.5485 GB, free: 13.65 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.001558/0.001558, allocations: 70.73 kB / 0.671 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3782, allocations: 114.5 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005949/0.3842, allocations: 2.004 MB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.3859, allocations: 0.7298 MB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.386, allocations: 11.94 kB / 0.7855 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.3864, allocations: 75.75 kB / 0.7856 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.3866, allocations: 79.75 kB / 0.7857 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007423/0.3873, allocations: 166.7 kB / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003664/0.3877, allocations: 271.4 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.3879, allocations: 69.83 kB / 0.7862 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.3881, allocations: 119.6 kB / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.3885, allocations: 147.5 kB / 0.7864 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.3885, allocations: 24 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.3887, allocations: 95.86 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.3888, allocations: 63.77 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.389, allocations: 107.3 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005365/0.3895, allocations: 295.1 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3895, allocations: 0 / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.575e-06/0.3895, allocations: 0 / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.3896, allocations: 0 / 0.787 GB, free: 9.648 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.001119/0.3907, allocations: 0.5858 MB / 0.7876 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.3907, allocations: 11.97 kB / 0.7876 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.832e-05/0.3908, allocations: 32.56 kB / 0.7876 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005257/0.3914, allocations: 290.9 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.3914, allocations: 12.38 kB / 0.7879 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.3915, allocations: 12.38 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.3919, allocations: 235.2 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3919, allocations: 0 / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.392, allocations: 7.984 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.392, allocations: 4 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.3922, allocations: 132.3 kB / 0.7883 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.3933, allocations: 0.6846 MB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.3937, allocations: 170.4 kB / 0.7891 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.394, allocations: 101 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.394, allocations: 4 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.3945, allocations: 169.1 kB / 0.7894 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.3945, allocations: 3.938 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.000733/0.3952, allocations: 367 kB / 0.7897 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.3954, allocations: 132.5 kB / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.3957, allocations: 286.5 kB / 0.7901 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.3958, allocations: 33.7 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3959, allocations: 160.2 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.396, allocations: 39.45 kB / 0.7903 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.396, allocations: 41.7 kB / 0.7904 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3962, allocations: 338.8 kB / 0.7907 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.3964, allocations: 87.89 kB / 0.7908 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.3966, allocations: 133 kB / 0.7909 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.397, allocations: 238.7 kB / 0.7911 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.397, allocations: 0 / 0.7911 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006027/0.3976, allocations: 341.7 kB / 0.7915 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/0.3977, allocations: 41.62 kB / 0.7915 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3977, allocations: 0 / 0.7915 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.3977, allocations: 0 / 0.7915 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.3978, allocations: 27.92 kB / 0.7915 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3979, allocations: 0 / 0.7915 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.398, allocations: 27.83 kB / 0.7915 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.398, allocations: 8.094 kB / 0.7916 GB, free: 4.625 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.000313/0.3983, allocations: 195.2 kB / 0.7917 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.3984, allocations: 23.72 kB / 0.7918 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.195e-05/0.3984, allocations: 33.92 kB / 0.7918 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3985, allocations: 7.922 kB / 0.7918 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3985, allocations: 0 / 0.7918 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3985, allocations: 0 / 0.7918 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.3988, allocations: 297.3 kB / 0.7921 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3988, allocations: 4 kB / 0.7921 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.3989, allocations: 19.92 kB / 0.7921 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.3989, allocations: 4 kB / 0.7921 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.399, allocations: 4 kB / 0.7921 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.399, allocations: 4 kB / 0.7921 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.399, allocations: 0 / 0.7921 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.3998, allocations: 469.1 kB / 0.7926 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.111e-05/0.3999, allocations: 100.8 kB / 0.7927 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.4, allocations: 8 kB / 0.7927 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.4001, allocations: 15.98 kB / 0.7927 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4002, allocations: 19.97 kB / 0.7927 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/0.4002, allocations: 11.98 kB / 0.7927 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001991/0.4004, allocations: 202 kB / 0.7929 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.12e-07/0.4004, allocations: 0 / 0.7929 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003276/0.4008, allocations: 60.03 kB / 0.793 GB, free: 3.074 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.0002989/0.4011, allocations: 139.2 kB / 0.7931 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005564/0.4017, allocations: 302.2 kB / 0.7934 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4017, allocations: 0 / 0.7934 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.4019, allocations: 179.4 kB / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.4023, allocations: 44.66 kB / 0.7936 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.4035, allocations: 0.5402 MB / 0.7941 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008516/0.4044, allocations: 0.7475 MB / 0.7949 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.749e-05/0.4045, allocations: 17.55 kB / 0.7949 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.4045, allocations: 23.7 kB / 0.7949 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.4045, allocations: 0 / 0.7949 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of Templates: time 0.00687/0.4114, allocations: 2.663 MB / 0.7975 GB, free: 14.37 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)