Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.453/1.453, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001285, allocations: 183.9 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009746/0.0009748, allocations: 93.47 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.0004038, allocations: 9.219 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3162, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2076/0.5239, allocations: 134.9 MB / 1.032 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000379/0.5244, allocations: 83.95 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01877/0.5432, allocations: 5.831 MB / 1.038 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.417e-06/0.5432, allocations: 4 kB / 1.038 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.42e-05/0.5433, allocations: 8 kB / 1.038 GB, free: 2.836 MB / 0.6823 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.001413/0.5447, allocations: 0.5974 MB / 1.038 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.5448, allocations: 8.031 kB / 1.038 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.5449, allocations: 50.55 kB / 1.038 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.5451, allocations: 35.66 kB / 1.038 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006505/0.5457, allocations: 289.5 kB / 1.039 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.5458, allocations: 12 kB / 1.039 GB, free: 1.75 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.5459, allocations: 19.91 kB / 1.039 GB, free: 1.73 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006153/0.5465, allocations: 259.1 kB / 1.039 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.5465, allocations: 0 / 1.039 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.5466, allocations: 8 kB / 1.039 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.5466, allocations: 0 / 1.039 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.547, allocations: 168.3 kB / 1.039 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.5484, allocations: 0.7316 MB / 1.04 GB, free: 500 kB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.549, allocations: 226.4 kB / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.549, allocations: 7.984 kB / 1.04 GB, free: 256 kB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004391/0.5495, allocations: 206.7 kB / 1.04 GB, free: 32 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 2.385e-06/0.5495, allocations: 4 kB / 1.04 GB, free: 28 kB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.001205/0.5507, allocations: 0.5566 MB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.5508, allocations: 132.5 kB / 1.041 GB, free: 15.28 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.5512, allocations: 245.9 kB / 1.041 GB, free: 15.03 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.5512, allocations: 33.69 kB / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.5514, allocations: 156.2 kB / 1.041 GB, free: 14.83 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.5514, allocations: 43.45 kB / 1.041 GB, free: 14.79 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.626e-05/0.5515, allocations: 4 kB / 1.041 GB, free: 14.79 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.5517, allocations: 342.8 kB / 1.042 GB, free: 14.44 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.5519, allocations: 120.1 kB / 1.042 GB, free: 14.32 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.5522, allocations: 161.5 kB / 1.042 GB, free: 14.14 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.5525, allocations: 135.5 kB / 1.042 GB, free: 14.01 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5525, allocations: 3.938 kB / 1.042 GB, free: 14 MB / 0.698 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007901/0.5533, allocations: 418.8 kB / 1.042 GB, free: 13.58 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/0.5534, allocations: 33.69 kB / 1.042 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.5534, allocations: 8.031 kB / 1.043 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.5535, allocations: 8.031 kB / 1.043 GB, free: 13.53 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.5536, allocations: 31.98 kB / 1.043 GB, free: 13.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.5536, allocations: 0 / 1.043 GB, free: 13.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.5539, allocations: 43.81 kB / 1.043 GB, free: 13.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.684e-05/0.5539, allocations: 12 kB / 1.043 GB, free: 13.44 MB / 0.698 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.5542, allocations: 195.6 kB / 1.043 GB, free: 13.24 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/0.5542, allocations: 31.66 kB / 1.043 GB, free: 13.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.034e-05/0.5543, allocations: 21.84 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.5543, allocations: 4 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.964e-06/0.5543, allocations: 0 / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.5543, allocations: 3.984 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.5547, allocations: 297.5 kB / 1.043 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.5547, allocations: 7.984 kB / 1.043 GB, free: 12.83 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.5549, allocations: 16 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.5549, allocations: 3.953 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.5549, allocations: 11.98 kB / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5549, allocations: 0 / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5549, allocations: 0 / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.5561, allocations: 0.5919 MB / 1.044 GB, free: 12.18 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.69e-05/0.5562, allocations: 92.92 kB / 1.044 GB, free: 12.07 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.5563, allocations: 19.95 kB / 1.044 GB, free: 12.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.5565, allocations: 31.97 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5566, allocations: 27.95 kB / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.5566, allocations: 8 kB / 1.044 GB, free: 11.99 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002408/0.5569, allocations: 201.9 kB / 1.044 GB, free: 11.79 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.148e-06/0.5569, allocations: 4 kB / 1.044 GB, free: 11.79 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004036/0.5573, allocations: 71.91 kB / 1.044 GB, free: 11.72 MB / 0.698 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001508/0.5588, allocations: 1.07 MB / 1.045 GB, free: 10.62 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006176/0.5594, allocations: 311.3 kB / 1.046 GB, free: 10.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5595, allocations: 4 kB / 1.046 GB, free: 10.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002955/0.5598, allocations: 199.5 kB / 1.046 GB, free: 10.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.5601, allocations: 32.88 kB / 1.046 GB, free: 10.05 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.5637, allocations: 2.112 MB / 1.048 GB, free: 7.883 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.5641, allocations: 0.7558 MB / 1.049 GB, free: 7.102 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.563e-05/0.5643, allocations: 17.42 kB / 1.049 GB, free: 7.086 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5644, allocations: 71.41 kB / 1.049 GB, free: 7.016 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.5644, allocations: 0 / 1.049 GB, free: 7.016 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.5882, allocations: 4.915 MB / 1.053 GB, free: 2.266 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/0.5886, allocations: 197.5 kB / 1.054 GB, free: 2.02 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.889, allocations: 4 kB / 1.054 GB, free: 2.016 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)