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.001449/0.001449, allocations: 103.9 kB / 16.36 MB, free: 6.352 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.001627/0.001627, allocations: 194.2 kB / 17.3 MB, free: 5.891 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.391/1.391, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.763/1.763, allocations: 292.3 MB / 0.5496 GB, free: 17.5 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.00142/0.00142, allocations: 66.25 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2399, allocations: 114.6 MB / 0.7848 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003515/0.2434, allocations: 1.958 MB / 0.7867 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.2448, allocations: 0.7489 MB / 0.7874 GB, free: 448 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2449, allocations: 7.938 kB / 0.7874 GB, free: 440 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.2452, allocations: 83.62 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.2453, allocations: 91.64 kB / 0.7876 GB, free: 264 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006083/0.2459, allocations: 183.6 kB / 0.7878 GB, free: 80 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3926/0.6385, allocations: 254.8 kB / 0.788 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.6388, allocations: 69.22 kB / 0.7881 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.6391, allocations: 120 kB / 0.7882 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.6394, allocations: 149.7 kB / 0.7883 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.577e-05/0.6395, allocations: 20.62 kB / 0.7884 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.6397, allocations: 91.66 kB / 0.7884 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.487e-05/0.6398, allocations: 60.2 kB / 0.7885 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.64, allocations: 109.5 kB / 0.7886 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.6405, allocations: 312.6 kB / 0.7889 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.6405, allocations: 2.75 kB / 0.7889 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6405, allocations: 0 / 0.7889 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.6405, allocations: 0 / 0.7889 GB, free: 47.07 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.001123/0.6416, allocations: 0.5802 MB / 0.7895 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.6417, allocations: 10.5 kB / 0.7895 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.701e-05/0.6418, allocations: 29.69 kB / 0.7895 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000682/0.6425, allocations: 311.4 kB / 0.7898 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.6425, allocations: 13.47 kB / 0.7898 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.6426, allocations: 12.28 kB / 0.7898 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.6431, allocations: 219.4 kB / 0.79 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.6431, allocations: 5.219 kB / 0.79 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.6432, allocations: 6.938 kB / 0.7901 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.6432, allocations: 2.688 kB / 0.7901 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003611/0.6436, allocations: 130.2 kB / 0.7902 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009904/0.6446, allocations: 0.6739 MB / 0.7908 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.6451, allocations: 173.4 kB / 0.791 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.6453, allocations: 101.2 kB / 0.7911 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.6454, allocations: 2.656 kB / 0.7911 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003506/0.6457, allocations: 170.6 kB / 0.7913 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 2.685e-06/0.6458, allocations: 1.172 kB / 0.7913 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.0007788/0.6465, allocations: 376.5 kB / 0.7916 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.6466, allocations: 145 kB / 0.7918 GB, free: 45.49 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.6469, allocations: 273.9 kB / 0.792 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.6469, allocations: 31.89 kB / 0.7921 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.6471, allocations: 161.8 kB / 0.7922 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.6471, allocations: 38.45 kB / 0.7922 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.031e-05/0.6472, allocations: 39.61 kB / 0.7923 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.6473, allocations: 346.3 kB / 0.7926 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.6474, allocations: 85.41 kB / 0.7927 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.6476, allocations: 128.6 kB / 0.7928 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.648, allocations: 244.7 kB / 0.7931 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.648, allocations: 0 / 0.7931 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000527/0.6485, allocations: 342.4 kB / 0.7934 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.6486, allocations: 35.88 kB / 0.7934 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.6486, allocations: 0.9375 kB / 0.7934 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.6486, allocations: 2.625 kB / 0.7934 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.6488, allocations: 23.11 kB / 0.7934 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.6488, allocations: 6.828 kB / 0.7934 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.6489, allocations: 27.97 kB / 0.7935 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.649, allocations: 3.406 kB / 0.7935 GB, free: 44.64 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.0001482/0.6491, allocations: 195.3 kB / 0.7937 GB, free: 44.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.979e-05/0.6492, allocations: 29.03 kB / 0.7937 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.844e-05/0.6492, allocations: 29.33 kB / 0.7937 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.6493, allocations: 4.766 kB / 0.7937 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.6493, allocations: 3.703 kB / 0.7937 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.6493, allocations: 3.5 kB / 0.7937 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.6495, allocations: 293.9 kB / 0.794 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6495, allocations: 0 / 0.794 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.6497, allocations: 16.25 kB / 0.794 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.6497, allocations: 3.219 kB / 0.794 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.6497, allocations: 10.78 kB / 0.794 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.6497, allocations: 0 / 0.794 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6497, allocations: 1.969 kB / 0.794 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000748/0.6505, allocations: 471.8 kB / 0.7945 GB, free: 44.17 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.6505, allocations: 101.5 kB / 0.7946 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.6506, allocations: 5.625 kB / 0.7946 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.6507, allocations: 16.27 kB / 0.7946 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.014e-05/0.6508, allocations: 24.11 kB / 0.7946 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.6509, allocations: 7.656 kB / 0.7946 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000182/0.6511, allocations: 205 kB / 0.7948 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6511, allocations: 0 / 0.7948 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003258/0.6514, allocations: 56.59 kB / 0.7949 GB, free: 43.97 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.0001871/0.6516, allocations: 128.5 kB / 0.795 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000515/0.6521, allocations: 308.6 kB / 0.7953 GB, free: 43.81 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.6521, allocations: 0 / 0.7953 GB, free: 43.81 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.6524, allocations: 187.4 kB / 0.7955 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.6527, allocations: 33.45 kB / 0.7955 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.6538, allocations: 0.4955 MB / 0.796 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.654, allocations: 0.7476 MB / 0.7967 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.028e-05/0.6541, allocations: 19.25 kB / 0.7967 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of SimCode: time 3.11e-07/0.6541, allocations: 4 kB / 0.7968 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of Templates: time 0.005121/0.6592, allocations: 2.989 MB / 0.7997 GB, free: 42.62 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)