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.001441/0.001441, allocations: 99.2 kB / 16.29 MB, free: 5.992 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.00136/0.00136, allocations: 178.6 kB / 17.22 MB, free: 5.613 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.583/1.583, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.925/1.925, allocations: 292.3 MB / 0.5495 GB, free: 17.63 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.001454/0.001454, allocations: 67.89 kB / 0.6722 GB, free: 6.562 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3083, allocations: 114.6 MB / 0.7841 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004017/0.3124, allocations: 1.946 MB / 0.786 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3141, allocations: 0.7492 MB / 0.7867 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.3142, allocations: 7.875 kB / 0.7867 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.3145, allocations: 79.64 kB / 0.7868 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.3146, allocations: 95.62 kB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.3152, allocations: 187.6 kB / 0.7871 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.3156, allocations: 263.3 kB / 0.7873 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.3158, allocations: 69.84 kB / 0.7874 GB, free: 488 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.316, allocations: 119.6 kB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.3162, allocations: 147.5 kB / 0.7876 GB, free: 220 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.887e-05/0.3163, allocations: 23.94 kB / 0.7877 GB, free: 196 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.3164, allocations: 99.84 kB / 0.7878 GB, free: 96 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.828e-05/0.3165, allocations: 55.83 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.6152/0.9318, allocations: 102.8 kB / 0.7879 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000581/0.9324, allocations: 298 kB / 0.7882 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.9324, allocations: 2.625 kB / 0.7882 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9324, allocations: 0.7188 kB / 0.7882 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.9324, allocations: 1.188 kB / 0.7882 GB, free: 46.45 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.0008594/0.9333, allocations: 0.5876 MB / 0.7888 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.9334, allocations: 9.688 kB / 0.7888 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.351e-05/0.9334, allocations: 30.78 kB / 0.7888 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.9338, allocations: 299.7 kB / 0.7891 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.9339, allocations: 11.31 kB / 0.7891 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.9339, allocations: 15.31 kB / 0.7891 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.9343, allocations: 226.1 kB / 0.7893 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.9343, allocations: 2.625 kB / 0.7893 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.9343, allocations: 5.031 kB / 0.7893 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.9343, allocations: 5.25 kB / 0.7893 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.9346, allocations: 130.9 kB / 0.7895 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007539/0.9354, allocations: 0.6755 MB / 0.7901 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003187/0.9357, allocations: 171.8 kB / 0.7903 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.9358, allocations: 101.9 kB / 0.7904 GB, free: 45.19 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.9359, allocations: 1.219 kB / 0.7904 GB, free: 45.19 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003439/0.9362, allocations: 173.6 kB / 0.7906 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.9362, allocations: 0 / 0.7906 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.0006219/0.9369, allocations: 378.7 kB / 0.7909 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.993e-05/0.937, allocations: 135.1 kB / 0.791 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.9372, allocations: 281.7 kB / 0.7913 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.9372, allocations: 30.77 kB / 0.7913 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.9373, allocations: 158.9 kB / 0.7915 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.9374, allocations: 39.75 kB / 0.7915 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.518e-05/0.9374, allocations: 41.03 kB / 0.7916 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.773e-05/0.9375, allocations: 339.7 kB / 0.7919 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.9377, allocations: 85.97 kB / 0.792 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.9378, allocations: 133.8 kB / 0.7921 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.9381, allocations: 237.5 kB / 0.7923 GB, free: 44.15 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.9381, allocations: 3.469 kB / 0.7923 GB, free: 44.15 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000447/0.9386, allocations: 338.5 kB / 0.7927 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.9386, allocations: 43.91 kB / 0.7927 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.9386, allocations: 0 / 0.7927 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.9387, allocations: 5.156 kB / 0.7927 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.9388, allocations: 28.31 kB / 0.7927 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.9388, allocations: 0 / 0.7927 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.9389, allocations: 21.83 kB / 0.7928 GB, free: 44.03 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.9389, allocations: 10.62 kB / 0.7928 GB, free: 44.03 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.0001459/0.9391, allocations: 193.7 kB / 0.7929 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.9391, allocations: 32.09 kB / 0.793 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.532e-05/0.9392, allocations: 29.59 kB / 0.793 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.9392, allocations: 5 kB / 0.793 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.9392, allocations: 3.281 kB / 0.793 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.9392, allocations: 0.8438 kB / 0.793 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.9395, allocations: 287.1 kB / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.9395, allocations: 7.547 kB / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.897e-05/0.9396, allocations: 14.34 kB / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.9396, allocations: 3.281 kB / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.9396, allocations: 8.344 kB / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.9396, allocations: 0 / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.9396, allocations: 0 / 0.7933 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.9403, allocations: 475.3 kB / 0.7938 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.9403, allocations: 101.4 kB / 0.7939 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.9404, allocations: 8.688 kB / 0.7939 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.705e-05/0.9405, allocations: 15.38 kB / 0.7939 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.9406, allocations: 25.88 kB / 0.7939 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.9406, allocations: 3.375 kB / 0.7939 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001624/0.9408, allocations: 206.2 kB / 0.7941 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9408, allocations: 0 / 0.7941 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002686/0.941, allocations: 53.97 kB / 0.7942 GB, free: 43.37 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.0001705/0.9412, allocations: 133.3 kB / 0.7943 GB, free: 43.28 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004159/0.9416, allocations: 298.8 kB / 0.7946 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9417, allocations: 0 / 0.7946 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.9419, allocations: 185.8 kB / 0.7948 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.9422, allocations: 39.7 kB / 0.7948 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009509/0.9431, allocations: 474.5 kB / 0.7953 GB, free: 42.93 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.9434, allocations: 0.753 MB / 0.796 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 7.655e-05/0.9435, allocations: 20.08 kB / 0.796 GB, free: 42.23 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.9435, allocations: 19.7 kB / 0.796 GB, free: 42.22 MB / 0.6544 GB Notification: Performance of SimCode: time 2e-07/0.9435, allocations: 0 / 0.796 GB, free: 42.22 MB / 0.6544 GB Notification: Performance of Templates: time 0.006723/0.9503, allocations: 2.829 MB / 0.7988 GB, free: 42.1 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)