Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002029/0.00203, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002023/0.002023, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.726/1.726, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.498/4.498, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 61.19 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4717/0.4731, allocations: 157.4 MB / 1.052 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005526/0.4787, allocations: 2.013 MB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001819/0.4806, allocations: 0.709 MB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.4808, allocations: 4 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.4811, allocations: 71.77 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.4814, allocations: 87.7 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009161/0.4823, allocations: 163.8 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.4828, allocations: 259.4 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.483, allocations: 82.03 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.4833, allocations: 119.6 kB / 1.056 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.4836, allocations: 151.5 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.146e-05/0.4836, allocations: 20 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.4838, allocations: 83.94 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.484, allocations: 67.75 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.4841, allocations: 99.41 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005301/0.4847, allocations: 303 kB / 1.057 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.4847, allocations: 8 kB / 1.057 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4847, allocations: 0 / 1.057 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.4847, allocations: 0 / 1.057 GB, free: 4.406 MB / 0.8106 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.001132/0.4859, allocations: 0.5741 MB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.895e-05/0.486, allocations: 12.62 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.088e-05/0.486, allocations: 46.73 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.368e-05/0.4861, allocations: 40.55 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.4867, allocations: 290.9 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.4868, allocations: 12.38 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.553e-05/0.4868, allocations: 12.38 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.4874, allocations: 227.1 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4874, allocations: 4 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.4874, allocations: 4 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.4874, allocations: 4 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003766/0.4878, allocations: 136.3 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.489, allocations: 0.6885 MB / 1.059 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.4896, allocations: 170.6 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000248/0.4898, allocations: 100.8 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.4899, allocations: 0 / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004913/0.4904, allocations: 165 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.4904, allocations: 0 / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0009874/0.4914, allocations: 381.2 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.4915, allocations: 136.5 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004263/0.492, allocations: 282.6 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.492, allocations: 37.69 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.4922, allocations: 148.3 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.4923, allocations: 43.45 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.4924, allocations: 45.61 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4926, allocations: 342.8 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.4928, allocations: 83.97 kB / 1.06 GB, free: 196 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.4931, allocations: 126.8 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005156/0.4936, allocations: 244.2 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4936, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007667/0.4944, allocations: 347.1 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.4945, allocations: 29.7 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4945, allocations: 8.094 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.4945, allocations: 0 / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.4947, allocations: 27.98 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.4948, allocations: 0 / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.4949, allocations: 23.83 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.495, allocations: 11.92 kB / 1.061 GB, free: 15.34 MB / 0.8262 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.0002168/0.4952, allocations: 195.4 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.4952, allocations: 27.72 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.436e-05/0.4953, allocations: 29.83 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.4953, allocations: 0 / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4953, allocations: 4 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.4953, allocations: 0 / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.4957, allocations: 297.4 kB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4957, allocations: 0 / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.4958, allocations: 15.98 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4958, allocations: 0 / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.4959, allocations: 8 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.4959, allocations: 7.984 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4959, allocations: 7.938 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007427/0.4966, allocations: 454.3 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.4967, allocations: 104.8 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.4967, allocations: 7.984 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.4969, allocations: 24.03 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.497, allocations: 19.97 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.497, allocations: 4 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001913/0.4972, allocations: 205.9 kB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4972, allocations: 0 / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003023/0.4975, allocations: 63.84 kB / 1.063 GB, free: 13.79 MB / 0.8262 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.001231/0.4987, allocations: 1.026 MB / 1.064 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006485/0.4994, allocations: 299.2 kB / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4994, allocations: 0 / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003352/0.4998, allocations: 191.7 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.5003, allocations: 32.55 kB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.5057, allocations: 2.835 MB / 1.067 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.5062, allocations: 0.7475 MB / 1.068 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001677/0.5064, allocations: 17.55 kB / 1.068 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.5066, allocations: 79.41 kB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of SimCode: time 1.813e-06/0.5066, allocations: 0 / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.5341, allocations: 5.09 MB / 1.073 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/0.5345, allocations: 206.9 kB / 1.073 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.829/3.364, allocations: 0 / 1.073 GB, free: 3.18 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)