Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7014/0.7014, allocations: 127.4 MB / 134.6 MB, free: 4.121 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 193.2 kB / 164.4 MB, free: 6.863 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.1 MB / 399.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000981/0.0009807, allocations: 87.56 kB / 476.3 MB, free: 8.84 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3267/0.3277, allocations: 82.89 MB / 0.5461 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.519, allocations: 76.75 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5363/1.055, allocations: 105 MB / 0.7235 GB, free: 7.305 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/1.056, allocations: 87.94 kB / 0.7236 GB, free: 7.219 MB / 490.7 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.02/1.076, allocations: 6.046 MB / 0.7295 GB, free: 1.129 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/1.076, allocations: 8 kB / 0.7295 GB, free: 1.121 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/1.076, allocations: 31.62 kB / 0.7296 GB, free: 1.09 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007128/1.077, allocations: 290.3 kB / 0.7298 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/1.077, allocations: 15.92 kB / 0.7299 GB, free: 0.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/1.077, allocations: 8 kB / 0.7299 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002972/1.077, allocations: 132.2 kB / 0.73 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/1.077, allocations: 215.2 kB / 0.7302 GB, free: 384 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/1.077, allocations: 7.938 kB / 0.7302 GB, free: 376 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/1.077, allocations: 0 / 0.7302 GB, free: 376 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/1.077, allocations: 4 kB / 0.7302 GB, free: 372 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/1.079, allocations: 0.6944 MB / 0.7309 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002577/1.079, allocations: 150.5 kB / 0.731 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/1.079, allocations: 104.8 kB / 0.7311 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/1.079, allocations: 4 kB / 0.7311 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/1.079, allocations: 173 kB / 0.7313 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/1.079, allocations: 0 / 0.7313 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=15): time 0.0006346/1.08, allocations: 236.2 kB / 0.7315 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.08, allocations: 132.5 kB / 0.7317 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/1.08, allocations: 225.1 kB / 0.7319 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/1.081, allocations: 33.69 kB / 0.7319 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/1.081, allocations: 132.1 kB / 0.732 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/1.081, allocations: 39.45 kB / 0.7321 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/1.081, allocations: 0 / 0.7321 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002453/1.081, allocations: 340 kB / 0.7324 GB, free: 14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/1.081, allocations: 88.91 kB / 0.7325 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/1.081, allocations: 136.5 kB / 0.7326 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/1.082, allocations: 95.2 kB / 0.7327 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/1.082, allocations: 0 / 0.7327 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004655/1.082, allocations: 263 kB / 0.7329 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/1.082, allocations: 8 kB / 0.733 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/1.082, allocations: 3.938 kB / 0.733 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/1.082, allocations: 0 / 0.733 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/1.082, allocations: 36.11 kB / 0.733 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/1.082, allocations: 11.92 kB / 0.733 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/1.083, allocations: 39.83 kB / 0.733 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/1.083, allocations: 12.7 kB / 0.733 GB, free: 13.3 MB / 0.4948 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 () * 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.0002138/1.083, allocations: 146.6 kB / 0.7332 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.928e-05/1.083, allocations: 23.72 kB / 0.7332 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.6e-05/1.083, allocations: 29.77 kB / 0.7332 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/1.083, allocations: 0 / 0.7332 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/1.083, allocations: 0 / 0.7332 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/1.083, allocations: 7.906 kB / 0.7332 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/1.083, allocations: 262 kB / 0.7335 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.083, allocations: 0 / 0.7335 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/1.084, allocations: 19.98 kB / 0.7335 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/1.084, allocations: 4 kB / 0.7335 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/1.084, allocations: 7.906 kB / 0.7335 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/1.084, allocations: 0 / 0.7335 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.866e-06/1.084, allocations: 4 kB / 0.7335 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007499/1.084, allocations: 412.6 kB / 0.7339 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001103/1.086, allocations: 0.9112 MB / 0.7348 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.939e-05/1.086, allocations: 96.77 kB / 0.7349 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/1.086, allocations: 4 kB / 0.7349 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/1.086, allocations: 36.09 kB / 0.7349 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/1.086, allocations: 27.95 kB / 0.735 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/1.086, allocations: 15.98 kB / 0.735 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0001968/1.086, allocations: 181.2 kB / 0.7352 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009783/1.087, allocations: 59.84 kB / 0.7352 GB, free: 10.96 MB / 0.4948 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) * 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.0003051/1.088, allocations: 138.1 kB / 0.7353 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003548/1.088, allocations: 205.7 kB / 0.7355 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.088, allocations: 4 kB / 0.7355 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/1.088, allocations: 145.8 kB / 0.7357 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/1.088, allocations: 36.45 kB / 0.7357 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/1.089, allocations: 341 kB / 0.736 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005917/1.09, allocations: 0.7784 MB / 0.7368 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of SimCode: time 2.61e-07/1.09, allocations: 4 kB / 0.7368 GB, free: 9.266 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)