Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001364/0.001364, allocations: 111.7 kB / 16.41 MB, free: 6.516 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.001256/0.001256, allocations: 185.2 kB / 17.34 MB, free: 5.738 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002557/0.002557, allocations: 285.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.3 MB / 0.499 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00283/0.00283, allocations: 87.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4906/0.4934, allocations: 86.99 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003544/0.4969, allocations: 1.944 MB / 0.7689 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.4983, allocations: 0.7127 MB / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.4984, allocations: 4 kB / 0.7696 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.4987, allocations: 79.62 kB / 0.7697 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.4988, allocations: 99.56 kB / 0.7698 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.4994, allocations: 186.8 kB / 0.77 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.4998, allocations: 259.4 kB / 0.7702 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.4999, allocations: 61.61 kB / 0.7703 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.5001, allocations: 119.6 kB / 0.7704 GB, free: 472 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.5003, allocations: 147.5 kB / 0.7706 GB, free: 324 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.5004, allocations: 20 kB / 0.7706 GB, free: 304 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.5005, allocations: 99.92 kB / 0.7707 GB, free: 204 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.672e-05/0.5006, allocations: 47.84 kB / 0.7707 GB, free: 156 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.5007, allocations: 115.3 kB / 0.7708 GB, free: 40 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.5012, allocations: 312.6 kB / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.5012, allocations: 0 / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5012, allocations: 0 / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.5012, allocations: 0 / 0.7711 GB, free: 15.74 MB / 0.545 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.0009432/0.5021, allocations: 0.5817 MB / 0.7717 GB, free: 15.1 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.5022, allocations: 12.03 kB / 0.7717 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.245e-05/0.5023, allocations: 28.75 kB / 0.7717 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.5028, allocations: 311 kB / 0.772 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.5028, allocations: 20.31 kB / 0.772 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.5029, allocations: 16.38 kB / 0.7721 GB, free: 14.69 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/0.5033, allocations: 223.3 kB / 0.7723 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.5033, allocations: 3.984 kB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.5033, allocations: 4 kB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.5033, allocations: 4 kB / 0.7723 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.5036, allocations: 132.3 kB / 0.7724 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009511/0.5046, allocations: 0.6809 MB / 0.7731 GB, free: 13.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.5049, allocations: 158.5 kB / 0.7732 GB, free: 13.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.5051, allocations: 88.95 kB / 0.7733 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.5051, allocations: 0 / 0.7733 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.5054, allocations: 172 kB / 0.7735 GB, free: 13.13 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.5054, allocations: 4 kB / 0.7735 GB, free: 13.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0007438/0.5062, allocations: 371 kB / 0.7738 GB, free: 12.75 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5063, allocations: 140.5 kB / 0.774 GB, free: 12.58 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.5066, allocations: 282.7 kB / 0.7742 GB, free: 12.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.5066, allocations: 29.7 kB / 0.7743 GB, free: 12.27 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5068, allocations: 164.3 kB / 0.7744 GB, free: 12.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.5068, allocations: 47.62 kB / 0.7745 GB, free: 12.06 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.569e-05/0.5069, allocations: 45.7 kB / 0.7745 GB, free: 12.01 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5071, allocations: 330.8 kB / 0.7748 GB, free: 11.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.5072, allocations: 87.91 kB / 0.7749 GB, free: 11.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.5074, allocations: 129.9 kB / 0.775 GB, free: 11.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.5078, allocations: 252.9 kB / 0.7753 GB, free: 11.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5078, allocations: 0 / 0.7753 GB, free: 11.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005522/0.5084, allocations: 331 kB / 0.7756 GB, free: 10.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.07e-05/0.5084, allocations: 45.73 kB / 0.7756 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5084, allocations: 0 / 0.7756 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.5084, allocations: 4 kB / 0.7756 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.5086, allocations: 23.92 kB / 0.7757 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.5086, allocations: 7.984 kB / 0.7757 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.5087, allocations: 19.89 kB / 0.7757 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.5087, allocations: 11.98 kB / 0.7757 GB, free: 10.72 MB / 0.545 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.0002068/0.5089, allocations: 194.8 kB / 0.7759 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.093e-05/0.509, allocations: 23.86 kB / 0.7759 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.509, allocations: 29.77 kB / 0.7759 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.5091, allocations: 4 kB / 0.7759 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5091, allocations: 0 / 0.7759 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5091, allocations: 3.984 kB / 0.7759 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003131/0.5094, allocations: 297.4 kB / 0.7762 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5094, allocations: 0 / 0.7762 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.5095, allocations: 15.98 kB / 0.7762 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5095, allocations: 0 / 0.7762 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.5095, allocations: 11.98 kB / 0.7763 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.5095, allocations: 0 / 0.7763 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5095, allocations: 0 / 0.7763 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007842/0.5103, allocations: 470.4 kB / 0.7767 GB, free: 9.602 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/0.5104, allocations: 97 kB / 0.7768 GB, free: 9.488 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.5104, allocations: 11.98 kB / 0.7768 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.5105, allocations: 16.05 kB / 0.7768 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.5106, allocations: 19.97 kB / 0.7768 GB, free: 9.441 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.5106, allocations: 8 kB / 0.7768 GB, free: 9.434 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000207/0.5108, allocations: 201.9 kB / 0.777 GB, free: 9.242 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/0.5108, allocations: 0 / 0.777 GB, free: 9.242 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003044/0.5111, allocations: 59.89 kB / 0.7771 GB, free: 9.184 MB / 0.545 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.0002219/0.5114, allocations: 139 kB / 0.7772 GB, free: 9.039 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004948/0.5119, allocations: 255.4 kB / 0.7775 GB, free: 8.777 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.5119, allocations: 3.938 kB / 0.7775 GB, free: 8.773 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.5121, allocations: 155.3 kB / 0.7776 GB, free: 8.609 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.5124, allocations: 39.27 kB / 0.7777 GB, free: 8.574 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.5135, allocations: 487.7 kB / 0.7781 GB, free: 8.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.5139, allocations: 0.763 MB / 0.7789 GB, free: 7.281 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.474e-05/0.514, allocations: 17.53 kB / 0.7789 GB, free: 7.262 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.514, allocations: 19.44 kB / 0.7789 GB, free: 7.242 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.514, allocations: 0 / 0.7789 GB, free: 7.242 MB / 0.545 GB Notification: Performance of Templates: time 0.007342/0.5214, allocations: 2.848 MB / 0.7817 GB, free: 4.418 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)