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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 173.7 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7775/0.7775, allocations: 133.6 MB / 141.6 MB, free: 2.867 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.5 MB / 395.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009185/0.0009188, allocations: 107.6 kB / 478.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.706e-05/1.708e-05, allocations: 0 / 0.5536 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3737, allocations: 82.29 MB / 0.6339 GB, free: 40.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.5227, allocations: 113.7 MB / 0.745 GB, free: 8.977 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.523, allocations: 83.95 kB / 0.745 GB, free: 8.895 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01659/0.5396, allocations: 5.847 MB / 0.7507 GB, free: 3.043 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5396, allocations: 4 kB / 0.7507 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.571e-05/0.5396, allocations: 4 kB / 0.7507 GB, free: 3.035 MB / 0.5261 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.0007548/0.5404, allocations: 0.5501 MB / 0.7513 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.5405, allocations: 12.03 kB / 0.7513 GB, free: 2.422 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.5405, allocations: 27.72 kB / 0.7513 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004202/0.541, allocations: 289.5 kB / 0.7516 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.541, allocations: 12 kB / 0.7516 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.541, allocations: 8 kB / 0.7516 GB, free: 2.055 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002254/0.5413, allocations: 128.2 kB / 0.7517 GB, free: 1.926 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.5416, allocations: 223.2 kB / 0.752 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.5416, allocations: 3.938 kB / 0.752 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.5417, allocations: 0 / 0.752 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.5417, allocations: 4 kB / 0.752 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008427/0.5425, allocations: 0.6967 MB / 0.7526 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.5427, allocations: 150.5 kB / 0.7528 GB, free: 0.7773 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.5429, allocations: 111.1 kB / 0.7529 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.5429, allocations: 0 / 0.7529 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.5431, allocations: 177.9 kB / 0.7531 GB, free: 488 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.5431, allocations: 0 / 0.7531 GB, free: 488 kB / 0.5261 GB Notification: Performance of matching and sorting (n=15): time 0.0005872/0.5437, allocations: 316.7 kB / 0.7534 GB, free: 168 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.5438, allocations: 132.5 kB / 0.7535 GB, free: 4 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.544, allocations: 222.1 kB / 0.7537 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.5441, allocations: 33.7 kB / 0.7537 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.586e-05/0.5442, allocations: 156.2 kB / 0.7539 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.5442, allocations: 43.36 kB / 0.7539 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/0.5442, allocations: 4 kB / 0.7539 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.5444, allocations: 334.8 kB / 0.7542 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.5445, allocations: 96.14 kB / 0.7543 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.5446, allocations: 132.6 kB / 0.7545 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.5448, allocations: 93.64 kB / 0.7546 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.5448, allocations: 0 / 0.7546 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004814/0.5453, allocations: 329.3 kB / 0.7549 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.5454, allocations: 45.64 kB / 0.7549 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.5454, allocations: 0 / 0.7549 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.5454, allocations: 4 kB / 0.7549 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.5455, allocations: 23.98 kB / 0.7549 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.5456, allocations: 8.078 kB / 0.7549 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.5457, allocations: 43.81 kB / 0.755 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.5458, allocations: 8 kB / 0.755 GB, free: 14.4 MB / 0.5417 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.00011/0.5459, allocations: 148.9 kB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004946/0.5464, allocations: 318.8 kB / 0.7554 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.5464, allocations: 31.67 kB / 0.7555 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.051e-05/0.5465, allocations: 25.95 kB / 0.7555 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.5465, allocations: 3.984 kB / 0.7555 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5465, allocations: 0 / 0.7555 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5465, allocations: 0 / 0.7555 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.5467, allocations: 274 kB / 0.7558 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.5468, allocations: 0 / 0.7558 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.5469, allocations: 27.86 kB / 0.7558 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.5469, allocations: 7.953 kB / 0.7558 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.5469, allocations: 4 kB / 0.7558 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.5469, allocations: 4 kB / 0.7558 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5469, allocations: 0 / 0.7558 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/0.5477, allocations: 483.7 kB / 0.7563 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.5477, allocations: 100.7 kB / 0.7564 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.5478, allocations: 12.05 kB / 0.7564 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.548, allocations: 39.97 kB / 0.7564 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.809e-05/0.548, allocations: 23.95 kB / 0.7564 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.5481, allocations: 8 kB / 0.7564 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001506/0.5482, allocations: 186 kB / 0.7566 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5482, allocations: 0 / 0.7566 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000297/0.5485, allocations: 55.94 kB / 0.7567 GB, free: 12.6 MB / 0.5417 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.0008584/0.5494, allocations: 0.9652 MB / 0.7576 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.5497, allocations: 259.3 kB / 0.7579 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5497, allocations: 0 / 0.7579 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.5499, allocations: 167.6 kB / 0.758 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.5502, allocations: 34.36 kB / 0.7581 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/0.5511, allocations: 425.5 kB / 0.7585 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.5515, allocations: 0.7642 MB / 0.7592 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.572e-05/0.5515, allocations: 17.2 kB / 0.7592 GB, free: 9.875 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.907e-05/0.5516, allocations: 71.41 kB / 0.7593 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of SimCode: time 2.7e-07/0.5516, allocations: 0 / 0.7593 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.5742, allocations: 4.342 MB / 0.7635 GB, free: 5.496 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.5744, allocations: 124.6 kB / 0.7637 GB, free: 5.305 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.257, allocations: 0 / 0.7637 GB, free: 5.305 MB / 0.5417 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)