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: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") [: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.001866/0.001866, allocations: 174.7 kB / 7.459 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5818/0.5818, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.089/1.089, allocations: 221.3 MB / 395 MB, free: 10.21 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.0008348/0.0008349, allocations: 91.11 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.979e-06/5.079e-06, allocations: 0 / 0.5528 GB, free: 89.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 82.31 MB / 0.6332 GB, free: 14.13 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2991/0.4014, allocations: 113.6 MB / 0.7442 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.4017, allocations: 77.3 kB / 0.7442 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.01415/0.4158, allocations: 5.553 MB / 0.7497 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.11e-05/0.4158, allocations: 3.844 kB / 0.7497 GB, free: 10.42 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.0006876/0.4165, allocations: 0.5556 MB / 0.7502 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.4166, allocations: 8.938 kB / 0.7502 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.4166, allocations: 31.88 kB / 0.7502 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.4171, allocations: 286.5 kB / 0.7505 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.4171, allocations: 5.125 kB / 0.7505 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.4172, allocations: 12.69 kB / 0.7505 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002253/0.4174, allocations: 131.8 kB / 0.7507 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.4177, allocations: 220.7 kB / 0.7509 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.4177, allocations: 0 / 0.7509 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/0.4177, allocations: 1.25 kB / 0.7509 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.4177, allocations: 3.359 kB / 0.7509 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009382/0.4187, allocations: 0.707 MB / 0.7516 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.4189, allocations: 146.8 kB / 0.7517 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.4191, allocations: 110.2 kB / 0.7518 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.4191, allocations: 1.312 kB / 0.7518 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.4193, allocations: 173.5 kB / 0.752 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.4193, allocations: 1.438 kB / 0.752 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0004255/0.4197, allocations: 235.8 kB / 0.7522 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.4198, allocations: 139.7 kB / 0.7523 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.42, allocations: 224.2 kB / 0.7526 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.4201, allocations: 34.39 kB / 0.7526 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.82e-05/0.4201, allocations: 128.1 kB / 0.7527 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.4202, allocations: 43.72 kB / 0.7528 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.4202, allocations: 5.219 kB / 0.7528 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4203, allocations: 337.3 kB / 0.7531 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.4205, allocations: 87.94 kB / 0.7532 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.4206, allocations: 135.7 kB / 0.7533 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.4208, allocations: 93.61 kB / 0.7534 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4208, allocations: 0 / 0.7534 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000407/0.4212, allocations: 261.8 kB / 0.7536 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.4212, allocations: 4.062 kB / 0.7536 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.4212, allocations: 1.281 kB / 0.7536 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.4212, allocations: 2.562 kB / 0.7536 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.4214, allocations: 37.23 kB / 0.7537 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4214, allocations: 4.859 kB / 0.7537 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.4216, allocations: 38.44 kB / 0.7537 GB, free: 24.17 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.4217, allocations: 9.188 kB / 0.7537 GB, free: 24.17 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.0001227/0.4218, allocations: 146.5 kB / 0.7539 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/0.4219, allocations: 27.86 kB / 0.7539 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.4219, allocations: 27.75 kB / 0.7539 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4219, allocations: 1.062 kB / 0.7539 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.422, allocations: 0.5 kB / 0.7539 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.422, allocations: 0.5 kB / 0.7539 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.4222, allocations: 269 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4222, allocations: 0.625 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.4224, allocations: 21.17 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4224, allocations: 0.5 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.4224, allocations: 4.594 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4224, allocations: 0.5938 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4224, allocations: 0.5938 kB / 0.7542 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000719/0.4232, allocations: 421.9 kB / 0.7546 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.4232, allocations: 102.5 kB / 0.7547 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.4233, allocations: 3.781 kB / 0.7547 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.4235, allocations: 34.11 kB / 0.7547 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.988e-05/0.4236, allocations: 30.3 kB / 0.7548 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.4236, allocations: 7.844 kB / 0.7548 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000157/0.4238, allocations: 180.4 kB / 0.7549 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002807/0.424, allocations: 61.56 kB / 0.755 GB, free: 23.54 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.0001754/0.4242, allocations: 134 kB / 0.7551 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.000264/0.4245, allocations: 213 kB / 0.7553 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.4245, allocations: 1 kB / 0.7553 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.4246, allocations: 148 kB / 0.7555 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.4249, allocations: 27.31 kB / 0.7555 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000745/0.4256, allocations: 344.4 kB / 0.7558 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.4259, allocations: 0.7763 MB / 0.7566 GB, free: 22.54 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/0.4259, allocations: 5.344 kB / 0.7566 GB, free: 22.54 MB / 0.5105 GB Notification: Performance of Templates: time 0.004697/0.4306, allocations: 2.512 MB / 0.759 GB, free: 21.72 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)