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.001632/0.001632, allocations: 99.72 kB / 16.27 MB, free: 5.977 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.001951/0.001951, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.459/1.459, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.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.814/1.814, allocations: 292.3 MB / 0.5495 GB, free: 17.59 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.001393/0.001393, allocations: 70.39 kB / 0.6722 GB, free: 6.559 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2335, allocations: 114.5 MB / 0.784 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003665/0.2373, allocations: 1.953 MB / 0.7859 GB, free: 1.918 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2386, allocations: 0.757 MB / 0.7867 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.2387, allocations: 7.938 kB / 0.7867 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.239, allocations: 75.64 kB / 0.7867 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.2392, allocations: 95.56 kB / 0.7868 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.2398, allocations: 186.3 kB / 0.787 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.2401, allocations: 263.2 kB / 0.7873 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.2403, allocations: 73.81 kB / 0.7873 GB, free: 480 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.2404, allocations: 119.6 kB / 0.7875 GB, free: 360 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.2407, allocations: 143.5 kB / 0.7876 GB, free: 216 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.2407, allocations: 27.94 kB / 0.7876 GB, free: 188 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.2408, allocations: 91.91 kB / 0.7877 GB, free: 96 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.433e-05/0.2409, allocations: 55.84 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.4588/0.6997, allocations: 108.5 kB / 0.7879 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005286/0.7003, allocations: 292.2 kB / 0.7881 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.7004, allocations: 6.156 kB / 0.7881 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.003e-06/0.7004, allocations: 0.6562 kB / 0.7881 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.7004, allocations: 0 / 0.7881 GB, free: 46.25 MB / 0.6544 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.0008389/0.7012, allocations: 0.5743 MB / 0.7887 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.7013, allocations: 13.28 kB / 0.7887 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.7014, allocations: 30 kB / 0.7887 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.7018, allocations: 305.4 kB / 0.789 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.7018, allocations: 11.88 kB / 0.789 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.7018, allocations: 17.56 kB / 0.7891 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.7022, allocations: 221.7 kB / 0.7893 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.7022, allocations: 3.094 kB / 0.7893 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.7023, allocations: 7.672 kB / 0.7893 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.7023, allocations: 5.75 kB / 0.7893 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.7025, allocations: 129.7 kB / 0.7894 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.7033, allocations: 0.6779 MB / 0.7901 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.7036, allocations: 168.7 kB / 0.7902 GB, free: 45 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.7037, allocations: 103.3 kB / 0.7903 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.7038, allocations: 5.312 kB / 0.7903 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.7041, allocations: 162.2 kB / 0.7905 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 1.754e-06/0.7041, allocations: 2.031 kB / 0.7905 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.0006285/0.7047, allocations: 379.5 kB / 0.7909 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.7048, allocations: 137.1 kB / 0.791 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.705, allocations: 276.7 kB / 0.7913 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.7051, allocations: 34.19 kB / 0.7913 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.683e-05/0.7052, allocations: 156.7 kB / 0.7914 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.7052, allocations: 45.38 kB / 0.7915 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.7053, allocations: 40.84 kB / 0.7915 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.7054, allocations: 338.9 kB / 0.7918 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.7055, allocations: 91.38 kB / 0.7919 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.7057, allocations: 135.2 kB / 0.7921 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.706, allocations: 236.6 kB / 0.7923 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.706, allocations: 0.5312 kB / 0.7923 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004459/0.7064, allocations: 335 kB / 0.7926 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.7065, allocations: 40.23 kB / 0.7926 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.7065, allocations: 6.625 kB / 0.7927 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.7065, allocations: 0 / 0.7927 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.7067, allocations: 21.69 kB / 0.7927 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.7067, allocations: 4.953 kB / 0.7927 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.7068, allocations: 24.16 kB / 0.7927 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.7068, allocations: 10.81 kB / 0.7927 GB, free: 43.83 MB / 0.6544 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.0001529/0.707, allocations: 198 kB / 0.7929 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.707, allocations: 30.19 kB / 0.7929 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.064e-05/0.7071, allocations: 29.11 kB / 0.793 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.7071, allocations: 0 / 0.793 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7071, allocations: 3.438 kB / 0.793 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7071, allocations: 0 / 0.793 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.7073, allocations: 296.8 kB / 0.7932 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7073, allocations: 0 / 0.7932 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-05/0.7074, allocations: 18.25 kB / 0.7933 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.7074, allocations: 4.516 kB / 0.7933 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.7075, allocations: 5 kB / 0.7933 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7075, allocations: 0 / 0.7933 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7075, allocations: 0 / 0.7933 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006088/0.7081, allocations: 476.6 kB / 0.7937 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.7081, allocations: 102.8 kB / 0.7938 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.7082, allocations: 6.406 kB / 0.7938 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.7083, allocations: 13.91 kB / 0.7938 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.7084, allocations: 25.39 kB / 0.7939 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.7084, allocations: 5.438 kB / 0.7939 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001448/0.7085, allocations: 205.3 kB / 0.7941 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7086, allocations: 1.125 kB / 0.7941 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002809/0.7088, allocations: 54.34 kB / 0.7941 GB, free: 43.17 MB / 0.6544 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.0001804/0.709, allocations: 127.3 kB / 0.7942 GB, free: 43.08 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004474/0.7095, allocations: 306.6 kB / 0.7945 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.7095, allocations: 2.656 kB / 0.7945 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.7097, allocations: 184.7 kB / 0.7947 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.71, allocations: 38.62 kB / 0.7947 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009236/0.711, allocations: 0.4985 MB / 0.7952 GB, free: 42.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.7112, allocations: 0.7524 MB / 0.796 GB, free: 42 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.025e-05/0.7112, allocations: 21.47 kB / 0.796 GB, free: 42 MB / 0.6544 GB Notification: Performance of SimCode: time 4.01e-07/0.7112, allocations: 0 / 0.796 GB, free: 42 MB / 0.6544 GB Notification: Performance of Templates: time 0.005347/0.7166, allocations: 2.989 MB / 0.7989 GB, free: 41.82 MB / 0.6544 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)