Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_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.004485/0.004486, allocations: 185.1 kB / 7.459 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7009/0.7009, allocations: 133.5 MB / 141.4 MB, free: 15.7 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.311/1.311, allocations: 221.3 MB / 395 MB, free: 10.25 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.001162/0.001162, allocations: 103.5 kB / 477.8 MB, free: 10.91 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3944/0.3956, allocations: 88.43 MB / 0.5529 GB, free: 88.96 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.561, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4566/1.018, allocations: 113.6 MB / 0.7443 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/1.018, allocations: 83.02 kB / 0.7443 GB, free: 10.76 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.01669/1.035, allocations: 6.116 MB / 0.7503 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/1.035, allocations: 9.281 kB / 0.7503 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.164e-05/1.035, allocations: 35.28 kB / 0.7503 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/1.035, allocations: 289.4 kB / 0.7506 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/1.035, allocations: 8.25 kB / 0.7506 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/1.035, allocations: 13.06 kB / 0.7506 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000267/1.036, allocations: 125.8 kB / 0.7508 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/1.036, allocations: 220.3 kB / 0.751 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/1.036, allocations: 5.188 kB / 0.751 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/1.036, allocations: 1.125 kB / 0.751 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/1.036, allocations: 3.266 kB / 0.751 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009561/1.037, allocations: 0.6966 MB / 0.7517 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/1.037, allocations: 153.4 kB / 0.7518 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/1.037, allocations: 97.97 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/1.037, allocations: 1.312 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/1.038, allocations: 176.1 kB / 0.7521 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.874e-06/1.038, allocations: 4.75 kB / 0.7521 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0005075/1.038, allocations: 232.9 kB / 0.7523 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.012e-05/1.038, allocations: 136.3 kB / 0.7524 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/1.038, allocations: 223.8 kB / 0.7526 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/1.038, allocations: 31.72 kB / 0.7527 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.422e-05/1.039, allocations: 124.8 kB / 0.7528 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.634e-05/1.039, allocations: 44.66 kB / 0.7528 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/1.039, allocations: 96 / 0.7528 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.039, allocations: 346.9 kB / 0.7532 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/1.039, allocations: 92.41 kB / 0.7533 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/1.039, allocations: 130.3 kB / 0.7534 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/1.039, allocations: 84.23 kB / 0.7535 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.039, allocations: 0 / 0.7535 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004507/1.04, allocations: 265.1 kB / 0.7537 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/1.04, allocations: 4.906 kB / 0.7537 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/1.04, allocations: 5 kB / 0.7537 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/1.04, allocations: 1.719 kB / 0.7537 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/1.04, allocations: 37.36 kB / 0.7538 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/1.04, allocations: 1.531 kB / 0.7538 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/1.04, allocations: 39.02 kB / 0.7538 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/1.04, allocations: 8.75 kB / 0.7538 GB, free: 24.13 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.0001338/1.04, allocations: 155 kB / 0.754 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/1.04, allocations: 24.62 kB / 0.754 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/1.04, allocations: 25.02 kB / 0.754 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/1.04, allocations: 1.344 kB / 0.754 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.04, allocations: 0 / 0.754 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.04, allocations: 4.484 kB / 0.754 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002549/1.041, allocations: 269.7 kB / 0.7543 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.041, allocations: 0 / 0.7543 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/1.041, allocations: 24.48 kB / 0.7543 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/1.041, allocations: 0.5312 kB / 0.7543 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/1.041, allocations: 8.25 kB / 0.7543 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/1.041, allocations: 0.5 kB / 0.7543 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.041, allocations: 0.5312 kB / 0.7543 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000673/1.042, allocations: 418 kB / 0.7547 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008342/1.042, allocations: 0.9113 MB / 0.7556 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/1.042, allocations: 94.39 kB / 0.7557 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/1.043, allocations: 11.03 kB / 0.7557 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/1.043, allocations: 34.59 kB / 0.7557 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/1.043, allocations: 26.08 kB / 0.7557 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/1.043, allocations: 16.06 kB / 0.7558 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001627/1.043, allocations: 179.7 kB / 0.7559 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008985/1.044, allocations: 59 kB / 0.756 GB, free: 23.04 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.0002646/1.044, allocations: 137.6 kB / 0.7561 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00035/1.045, allocations: 219.5 kB / 0.7563 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.045, allocations: 0 / 0.7563 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001748/1.045, allocations: 142 kB / 0.7565 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/1.045, allocations: 30.62 kB / 0.7565 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009467/1.046, allocations: 345.3 kB / 0.7568 GB, free: 22.74 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/1.046, allocations: 0.783 MB / 0.7576 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of SimCode: time 2.9e-07/1.046, allocations: 0 / 0.7576 GB, free: 22.03 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)