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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7665/0.7665, allocations: 141.8 MB / 149.1 MB, free: 1.445 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 177.3 kB / 181.9 MB, free: 0.8281 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.3 MB / 436 MB, free: 5.5 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 104.5 kB / 0.507 GB, free: 2.168 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00171/0.001709, allocations: 263.8 kB / 0.5884 GB, free: 47.32 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4531/0.4549, allocations: 89.64 MB / 0.676 GB, free: 59.68 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.6439, allocations: 82.78 MB / 0.7568 GB, free: 0.6484 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.8002, allocations: 110.9 MB / 0.8652 GB, free: 1.535 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.8005, allocations: 81.97 kB / 0.8652 GB, free: 1.457 MB / 0.5419 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.3924/1.193, allocations: 6.105 MB / 0.8712 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.193, allocations: 9.062 kB / 0.8712 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/1.193, allocations: 27.25 kB / 0.8712 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006645/1.194, allocations: 299.1 kB / 0.8715 GB, free: 109 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/1.194, allocations: 7.25 kB / 0.8715 GB, free: 109 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/1.194, allocations: 8.312 kB / 0.8715 GB, free: 109 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000334/1.194, allocations: 130.6 kB / 0.8717 GB, free: 109 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/1.195, allocations: 225.5 kB / 0.8719 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/1.195, allocations: 1.281 kB / 0.8719 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/1.195, allocations: 4.531 kB / 0.8719 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/1.195, allocations: 3.188 kB / 0.8719 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/1.196, allocations: 0.7033 MB / 0.8726 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/1.196, allocations: 145 kB / 0.8727 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/1.196, allocations: 107 kB / 0.8728 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/1.196, allocations: 1.219 kB / 0.8728 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/1.197, allocations: 175.5 kB / 0.873 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=15): time 2.014e-06/1.197, allocations: 0 / 0.873 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of matching and sorting (n=15): time 0.0005396/1.197, allocations: 233.4 kB / 0.8732 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/1.197, allocations: 132.4 kB / 0.8733 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/1.198, allocations: 225.8 kB / 0.8735 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/1.198, allocations: 32.66 kB / 0.8736 GB, free: 108 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 8.299e-05/1.198, allocations: 131.9 kB / 0.8737 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/1.198, allocations: 36.27 kB / 0.8737 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/1.198, allocations: 1.031 kB / 0.8737 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 8.798e-05/1.198, allocations: 336 kB / 0.8741 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/1.198, allocations: 99.84 kB / 0.8742 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/1.198, allocations: 138 kB / 0.8743 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/1.199, allocations: 91.56 kB / 0.8744 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.199, allocations: 1.75 kB / 0.8744 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000451/1.199, allocations: 267.5 kB / 0.8746 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/1.199, allocations: 4.625 kB / 0.8746 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/1.199, allocations: 1.125 kB / 0.8746 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/1.199, allocations: 2.344 kB / 0.8746 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/1.199, allocations: 32.81 kB / 0.8747 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/1.199, allocations: 1.688 kB / 0.8747 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/1.2, allocations: 39.08 kB / 0.8747 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/1.2, allocations: 8.156 kB / 0.8747 GB, free: 107.5 MB / 0.5419 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.0001201/1.2, allocations: 150.4 kB / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/1.2, allocations: 30.08 kB / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.928e-05/1.2, allocations: 26 kB / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/1.2, allocations: 0 / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/1.2, allocations: 1.438 kB / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/1.2, allocations: 0.5625 kB / 0.8749 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/1.2, allocations: 271.2 kB / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/1.2, allocations: 0 / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/1.2, allocations: 28.58 kB / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/1.2, allocations: 0 / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/1.2, allocations: 5.734 kB / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.2, allocations: 1.844 kB / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.2, allocations: 0 / 0.8752 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006565/1.201, allocations: 406.2 kB / 0.8756 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008069/1.202, allocations: 0.9133 MB / 0.8765 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/1.202, allocations: 96.81 kB / 0.8766 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.76e-05/1.202, allocations: 7.344 kB / 0.8766 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/1.202, allocations: 37.5 kB / 0.8766 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/1.202, allocations: 27.09 kB / 0.8766 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/1.202, allocations: 10.25 kB / 0.8767 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001535/1.202, allocations: 183.1 kB / 0.8768 GB, free: 106.4 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009034/1.203, allocations: 64.38 kB / 0.8769 GB, free: 106.4 MB / 0.5419 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.0002618/1.204, allocations: 148.1 kB / 0.877 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0003597/1.204, allocations: 211.4 kB / 0.8772 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.204, allocations: 1.031 kB / 0.8772 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/1.204, allocations: 142.2 kB / 0.8774 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/1.204, allocations: 19.33 kB / 0.8774 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/1.206, allocations: 354.4 kB / 0.8777 GB, free: 106.1 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/1.206, allocations: 0.7774 MB / 0.8785 GB, free: 105.4 MB / 0.5419 GB Notification: Performance of SimCode: time 2.8e-07/1.206, allocations: 1.094 kB / 0.8785 GB, free: 105.4 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)