Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001231/0.001231, allocations: 93.03 kB / 16.02 MB, free: 84 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.001489/0.001489, allocations: 183.7 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7404/0.7404, allocations: 123 MB / 415.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003922, allocations: 8 kB / 0.4933 GB, free: 13.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4325, allocations: 79.28 MB / 0.5707 GB, free: 9.895 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002418/0.4349, allocations: 1.642 MB / 0.5723 GB, free: 9.707 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.4361, allocations: 0.7096 MB / 0.573 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.4363, allocations: 3.531 kB / 0.573 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.4365, allocations: 68.11 kB / 0.5731 GB, free: 9.223 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.4366, allocations: 90.23 kB / 0.5732 GB, free: 9.195 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.4372, allocations: 162.2 kB / 0.5733 GB, free: 9.105 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003064/0.4375, allocations: 239.7 kB / 0.5736 GB, free: 9.008 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.4376, allocations: 68.2 kB / 0.5736 GB, free: 8.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.4378, allocations: 95.77 kB / 0.5737 GB, free: 8.938 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.438, allocations: 128.7 kB / 0.5738 GB, free: 8.902 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.438, allocations: 5.188 kB / 0.5739 GB, free: 8.902 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.4382, allocations: 77.25 kB / 0.5739 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.47e-05/0.4383, allocations: 43.7 kB / 0.574 GB, free: 8.863 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.992e-05/0.4384, allocations: 112.7 kB / 0.5741 GB, free: 8.773 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003467/0.4387, allocations: 281.8 kB / 0.5743 GB, free: 8.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4387, allocations: 1.125 kB / 0.5743 GB, free: 8.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4387, allocations: 4 kB / 0.5744 GB, free: 8.676 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.4387, allocations: 0 / 0.5744 GB, free: 8.676 MB / 430.1 MB 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.0007848/0.4395, allocations: 0.5473 MB / 0.5749 GB, free: 8.188 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4396, allocations: 13.12 kB / 0.5749 GB, free: 8.184 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.4397, allocations: 32.11 kB / 0.5749 GB, free: 8.168 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.4401, allocations: 303 kB / 0.5752 GB, free: 7.918 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.4402, allocations: 10.06 kB / 0.5752 GB, free: 7.914 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.4402, allocations: 15.16 kB / 0.5752 GB, free: 7.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.4406, allocations: 232.5 kB / 0.5755 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4407, allocations: 3.938 kB / 0.5755 GB, free: 7.773 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.4407, allocations: 6.781 kB / 0.5755 GB, free: 7.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.4407, allocations: 3.828 kB / 0.5755 GB, free: 7.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.441, allocations: 136.2 kB / 0.5756 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008263/0.4419, allocations: 0.6873 MB / 0.5763 GB, free: 7.172 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.4423, allocations: 179.5 kB / 0.5764 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.4425, allocations: 102.6 kB / 0.5765 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.4425, allocations: 4.719 kB / 0.5766 GB, free: 7.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003197/0.4428, allocations: 177.4 kB / 0.5767 GB, free: 6.953 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.4428, allocations: 0 / 0.5767 GB, free: 6.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007775/0.4436, allocations: 396.5 kB / 0.5771 GB, free: 6.801 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.4437, allocations: 132.8 kB / 0.5772 GB, free: 6.645 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.444, allocations: 284.4 kB / 0.5775 GB, free: 6.496 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.444, allocations: 28.94 kB / 0.5775 GB, free: 6.465 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.4441, allocations: 154.6 kB / 0.5777 GB, free: 6.332 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.4441, allocations: 45.84 kB / 0.5777 GB, free: 6.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.983e-05/0.4442, allocations: 27.41 kB / 0.5777 GB, free: 6.273 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.873e-05/0.4443, allocations: 338.5 kB / 0.5781 GB, free: 5.949 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.4445, allocations: 94.62 kB / 0.5782 GB, free: 5.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.4447, allocations: 135.7 kB / 0.5783 GB, free: 5.848 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.445, allocations: 245.9 kB / 0.5785 GB, free: 5.703 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.445, allocations: 0.9375 kB / 0.5785 GB, free: 5.703 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005361/0.4456, allocations: 345 kB / 0.5788 GB, free: 5.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.4456, allocations: 40.56 kB / 0.5789 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4456, allocations: 0.9688 kB / 0.5789 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4456, allocations: 2.609 kB / 0.5789 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.4458, allocations: 23.78 kB / 0.5789 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.4458, allocations: 5.75 kB / 0.5789 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.4459, allocations: 35 kB / 0.579 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.446, allocations: 5.625 kB / 0.579 GB, free: 5.504 MB / 430.1 MB 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.0001727/0.4461, allocations: 196.4 kB / 0.5791 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.4462, allocations: 25.19 kB / 0.5792 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.4463, allocations: 32.41 kB / 0.5792 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4463, allocations: 0 / 0.5792 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4463, allocations: 4.875 kB / 0.5792 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.4463, allocations: 0.5156 kB / 0.5792 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.4466, allocations: 289.5 kB / 0.5795 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4466, allocations: 0 / 0.5795 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.4467, allocations: 21.38 kB / 0.5795 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.4467, allocations: 1.422 kB / 0.5795 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.4468, allocations: 8.016 kB / 0.5795 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4468, allocations: 0.9688 kB / 0.5795 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4468, allocations: 0.5625 kB / 0.5795 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/0.4476, allocations: 481.9 kB / 0.58 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.4477, allocations: 95.84 kB / 0.5801 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.4477, allocations: 8.812 kB / 0.5801 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.4479, allocations: 20.09 kB / 0.5801 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.757e-05/0.448, allocations: 24.33 kB / 0.5801 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.448, allocations: 10.23 kB / 0.5801 GB, free: 4.723 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.4482, allocations: 199.1 kB / 0.5803 GB, free: 4.617 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4482, allocations: 0.7188 kB / 0.5803 GB, free: 4.617 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.4486, allocations: 55.41 kB / 0.5804 GB, free: 4.609 MB / 430.1 MB 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.000211/0.4488, allocations: 148.8 kB / 0.5805 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005358/0.4494, allocations: 308.1 kB / 0.5808 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4494, allocations: 1.344 kB / 0.5808 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002622/0.4496, allocations: 185.2 kB / 0.581 GB, free: 4.246 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.45, allocations: 41.7 kB / 0.581 GB, free: 4.227 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009912/0.451, allocations: 0.5374 MB / 0.5815 GB, free: 3.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.4512, allocations: 0.7535 MB / 0.5823 GB, free: 3.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.915e-05/0.4513, allocations: 15.03 kB / 0.5823 GB, free: 3.195 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.494e-05/0.4514, allocations: 17.84 kB / 0.5823 GB, free: 3.188 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4514, allocations: 4.844 kB / 0.5823 GB, free: 3.184 MB / 430.1 MB Notification: Performance of Templates: time 0.007205/0.4586, allocations: 2.523 MB / 0.5848 GB, free: 2.988 MB / 430.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)