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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 173.9 kB / 7.648 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 1.33/1.33, allocations: 133.6 MB / 141.6 MB, free: 2.883 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.486/2.486, allocations: 221.5 MB / 395.4 MB, free: 10.78 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.001549/0.001549, allocations: 105 kB / 478.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.791e-05/2.812e-05, allocations: 0 / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8287/0.8287, allocations: 82.3 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2848/1.114, allocations: 113.7 MB / 0.745 GB, free: 8.984 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000605/1.114, allocations: 87.94 kB / 0.745 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.03164/1.146, allocations: 5.843 MB / 0.7507 GB, free: 3.051 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.917e-06/1.146, allocations: 0 / 0.7507 GB, free: 3.051 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.256e-05/1.146, allocations: 4 kB / 0.7507 GB, free: 3.047 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.001592/1.148, allocations: 0.5579 MB / 0.7513 GB, free: 2.438 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 8.362e-05/1.148, allocations: 12.03 kB / 0.7513 GB, free: 2.426 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/1.148, allocations: 27.72 kB / 0.7513 GB, free: 2.398 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007713/1.149, allocations: 293.4 kB / 0.7516 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/1.149, allocations: 8 kB / 0.7516 GB, free: 2.066 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/1.149, allocations: 8 kB / 0.7516 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004096/1.149, allocations: 128.2 kB / 0.7517 GB, free: 1.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005996/1.15, allocations: 223.2 kB / 0.752 GB, free: 1.688 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/1.15, allocations: 3.938 kB / 0.752 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/1.15, allocations: 0 / 0.752 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/1.15, allocations: 4 kB / 0.752 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/1.152, allocations: 0.6928 MB / 0.7526 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/1.152, allocations: 158.5 kB / 0.7528 GB, free: 0.7773 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/1.152, allocations: 101 kB / 0.7529 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/1.152, allocations: 0 / 0.7529 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/1.153, allocations: 173 kB / 0.7531 GB, free: 500 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=15): time 2.385e-06/1.153, allocations: 4 kB / 0.7531 GB, free: 496 kB / 0.5261 GB Notification: Performance of matching and sorting (n=15): time 0.001162/1.154, allocations: 318.8 kB / 0.7534 GB, free: 172 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/1.154, allocations: 128.5 kB / 0.7535 GB, free: 12 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/1.155, allocations: 226.1 kB / 0.7537 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.962e-05/1.155, allocations: 29.7 kB / 0.7537 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/1.155, allocations: 156.2 kB / 0.7539 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.881e-05/1.155, allocations: 43.36 kB / 0.7539 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.948e-05/1.155, allocations: 0 / 0.7539 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002778/1.155, allocations: 338.8 kB / 0.7542 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/1.156, allocations: 92.16 kB / 0.7543 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/1.156, allocations: 133.5 kB / 0.7545 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/1.156, allocations: 89.44 kB / 0.7545 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/1.156, allocations: 4 kB / 0.7546 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007809/1.157, allocations: 333.3 kB / 0.7549 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.542e-05/1.157, allocations: 43.52 kB / 0.7549 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/1.157, allocations: 0 / 0.7549 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/1.157, allocations: 4 kB / 0.7549 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/1.157, allocations: 23.98 kB / 0.7549 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/1.157, allocations: 4 kB / 0.7549 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/1.158, allocations: 43.91 kB / 0.755 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/1.158, allocations: 12 kB / 0.755 GB, free: 14.41 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.0002089/1.158, allocations: 150.6 kB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008492/1.159, allocations: 312.7 kB / 0.7554 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.01e-05/1.159, allocations: 35.66 kB / 0.7555 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/1.159, allocations: 25.95 kB / 0.7555 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/1.159, allocations: 4 kB / 0.7555 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/1.159, allocations: 0 / 0.7555 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.159, allocations: 4 kB / 0.7555 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005041/1.16, allocations: 270 kB / 0.7558 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.16, allocations: 4.125 kB / 0.7558 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/1.16, allocations: 23.92 kB / 0.7558 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/1.16, allocations: 7.891 kB / 0.7558 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/1.16, allocations: 8 kB / 0.7558 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.084e-06/1.16, allocations: 3.984 kB / 0.7558 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.16, allocations: 4 kB / 0.7558 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/1.161, allocations: 478.2 kB / 0.7563 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/1.161, allocations: 104.7 kB / 0.7564 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.589e-05/1.161, allocations: 7.953 kB / 0.7564 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/1.162, allocations: 36.03 kB / 0.7564 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/1.162, allocations: 23.95 kB / 0.7564 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.292e-05/1.162, allocations: 19.98 kB / 0.7564 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003205/1.162, allocations: 178 kB / 0.7566 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.7e-07/1.162, allocations: 0 / 0.7566 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006258/1.163, allocations: 55.94 kB / 0.7567 GB, free: 12.61 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.001731/1.165, allocations: 0.9609 MB / 0.7576 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007208/1.165, allocations: 261.3 kB / 0.7579 GB, free: 11.35 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.165, allocations: 4 kB / 0.7579 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003179/1.166, allocations: 167.4 kB / 0.758 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/1.166, allocations: 36.67 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.001709/1.168, allocations: 424.5 kB / 0.7585 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006791/1.169, allocations: 0.7594 MB / 0.7592 GB, free: 9.898 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001494/1.169, allocations: 13.2 kB / 0.7592 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/1.169, allocations: 71.41 kB / 0.7593 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of SimCode: time 7.22e-07/1.169, allocations: 4 kB / 0.7593 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05404/1.223, allocations: 4.346 MB / 0.7635 GB, free: 5.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003147/1.224, allocations: 133.4 kB / 0.7637 GB, free: 5.305 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.094/4.318, allocations: 0 / 0.7637 GB, free: 5.305 MB / 0.5417 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)