Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.006105/0.006105, allocations: 180.1 kB / 7.453 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7111/0.7111, allocations: 133.5 MB / 141.4 MB, free: 15.64 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 221.3 MB / 395 MB, free: 10.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000928/0.0009282, allocations: 103 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4465/0.4474, allocations: 88.42 MB / 0.5529 GB, free: 89.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.6803, allocations: 82.31 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8303/1.511, allocations: 113.6 MB / 0.7443 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/1.511, allocations: 80.88 kB / 0.7443 GB, free: 10.83 MB / 0.4948 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.01986/1.531, allocations: 6.113 MB / 0.7503 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/1.531, allocations: 9.766 kB / 0.7503 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/1.531, allocations: 30.97 kB / 0.7503 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006404/1.532, allocations: 292.5 kB / 0.7506 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/1.532, allocations: 6.156 kB / 0.7506 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/1.532, allocations: 11.69 kB / 0.7506 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002875/1.532, allocations: 131 kB / 0.7508 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/1.532, allocations: 217.9 kB / 0.751 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.532, allocations: 4.641 kB / 0.751 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.533e-05/1.532, allocations: 1.25 kB / 0.751 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/1.532, allocations: 3.75 kB / 0.751 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/1.534, allocations: 0.6977 MB / 0.7517 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/1.534, allocations: 154.9 kB / 0.7518 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/1.534, allocations: 103.1 kB / 0.7519 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/1.534, allocations: 1.281 kB / 0.7519 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003169/1.535, allocations: 174.6 kB / 0.7521 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/1.535, allocations: 0 / 0.7521 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.000693/1.535, allocations: 237.5 kB / 0.7523 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/1.535, allocations: 139.9 kB / 0.7524 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/1.536, allocations: 223.2 kB / 0.7526 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/1.536, allocations: 30.95 kB / 0.7527 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/1.536, allocations: 123.7 kB / 0.7528 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/1.536, allocations: 45.34 kB / 0.7528 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/1.536, allocations: 1.312 kB / 0.7528 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001749/1.536, allocations: 337.2 kB / 0.7532 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/1.536, allocations: 92.48 kB / 0.7532 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/1.537, allocations: 140.3 kB / 0.7534 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/1.537, allocations: 84.34 kB / 0.7535 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.537, allocations: 0 / 0.7535 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006431/1.537, allocations: 263.9 kB / 0.7537 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/1.537, allocations: 4.969 kB / 0.7537 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/1.537, allocations: 5.031 kB / 0.7537 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/1.537, allocations: 1.75 kB / 0.7537 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/1.538, allocations: 30.02 kB / 0.7538 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/1.538, allocations: 2.125 kB / 0.7538 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/1.538, allocations: 38.36 kB / 0.7538 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/1.538, allocations: 11.75 kB / 0.7538 GB, free: 24.2 MB / 0.5105 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.000197/1.538, allocations: 158.5 kB / 0.754 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/1.538, allocations: 24.84 kB / 0.754 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.803e-05/1.538, allocations: 27.19 kB / 0.754 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/1.538, allocations: 1.188 kB / 0.754 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/1.538, allocations: 0.6562 kB / 0.754 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.538, allocations: 3.188 kB / 0.754 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/1.539, allocations: 266.6 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.539, allocations: 0 / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/1.539, allocations: 24.27 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/1.539, allocations: 1.031 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/1.539, allocations: 4.125 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/1.539, allocations: 0.5625 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/1.539, allocations: 3.875 kB / 0.7543 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008443/1.54, allocations: 415.1 kB / 0.7547 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001069/1.541, allocations: 0.9111 MB / 0.7556 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.524e-05/1.541, allocations: 97.88 kB / 0.7557 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/1.541, allocations: 8.531 kB / 0.7557 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/1.541, allocations: 34.28 kB / 0.7557 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.367e-05/1.541, allocations: 26.94 kB / 0.7557 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/1.541, allocations: 15.45 kB / 0.7558 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000249/1.542, allocations: 182.7 kB / 0.7559 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001063/1.543, allocations: 58.72 kB / 0.756 GB, free: 23.11 MB / 0.5105 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.0002613/1.543, allocations: 134.2 kB / 0.7561 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003822/1.543, allocations: 214.5 kB / 0.7563 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.543, allocations: 3.312 kB / 0.7563 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/1.544, allocations: 143.1 kB / 0.7565 GB, free: 22.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/1.544, allocations: 29.59 kB / 0.7565 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/1.545, allocations: 345.7 kB / 0.7568 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005015/1.546, allocations: 0.7817 MB / 0.7576 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of SimCode: time 2.61e-07/1.546, allocations: 1.5 kB / 0.7576 GB, free: 22.11 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)