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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8454/0.8454, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.497/1.497, allocations: 221.3 MB / 400.4 MB, free: 5.801 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.0008779/0.000878, allocations: 98.81 kB / 483.3 MB, free: 5.812 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.908e-05/4.937e-05, allocations: 10.89 kB / 0.56 GB, free: 87.87 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 82.3 MB / 0.6404 GB, free: 7.812 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6149/0.7937, allocations: 114.4 MB / 0.7521 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.794, allocations: 82.42 kB / 0.7522 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01517/0.8091, allocations: 5.882 MB / 0.7579 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.442e-06/0.8092, allocations: 0 / 0.7579 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.8092, allocations: 7.906 kB / 0.7579 GB, free: 26.72 MB / 0.5105 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.0007588/0.81, allocations: 0.5487 MB / 0.7585 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.81, allocations: 7.656 kB / 0.7585 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.8101, allocations: 30.31 kB / 0.7585 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.8105, allocations: 293.6 kB / 0.7588 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.8106, allocations: 11.5 kB / 0.7588 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.8106, allocations: 11.16 kB / 0.7588 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.811, allocations: 247.6 kB / 0.759 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.811, allocations: 0 / 0.759 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.811, allocations: 11 kB / 0.759 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.811, allocations: 3.844 kB / 0.759 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.8112, allocations: 141.2 kB / 0.7592 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000874/0.8121, allocations: 0.7392 MB / 0.7599 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.8123, allocations: 160.8 kB / 0.7601 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.8125, allocations: 113.6 kB / 0.7602 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.8125, allocations: 3.844 kB / 0.7602 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.8127, allocations: 181.5 kB / 0.7603 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.8128, allocations: 0 / 0.7603 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0005328/0.8133, allocations: 347.6 kB / 0.7607 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.8134, allocations: 132.4 kB / 0.7608 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.8136, allocations: 250.2 kB / 0.761 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.8136, allocations: 32.64 kB / 0.7611 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.8137, allocations: 151.4 kB / 0.7612 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.8138, allocations: 48.73 kB / 0.7613 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/0.8138, allocations: 7.438 kB / 0.7613 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.8139, allocations: 339.8 kB / 0.7616 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.8141, allocations: 93.41 kB / 0.7617 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.8142, allocations: 139.8 kB / 0.7618 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.8144, allocations: 126.9 kB / 0.7619 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8144, allocations: 0 / 0.7619 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004386/0.8148, allocations: 365 kB / 0.7623 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.8149, allocations: 40.19 kB / 0.7623 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8149, allocations: 0 / 0.7623 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.8149, allocations: 3.844 kB / 0.7623 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.815, allocations: 31.05 kB / 0.7624 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.8151, allocations: 4.094 kB / 0.7624 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.8152, allocations: 45.06 kB / 0.7624 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.8153, allocations: 10.53 kB / 0.7624 GB, free: 23.92 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.000118/0.8154, allocations: 150.2 kB / 0.7626 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.8154, allocations: 35.14 kB / 0.7626 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.371e-05/0.8155, allocations: 29.14 kB / 0.7626 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.8155, allocations: 3.906 kB / 0.7626 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.8155, allocations: 4 kB / 0.7626 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.8155, allocations: 0 / 0.7626 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.8157, allocations: 303 kB / 0.7629 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.8158, allocations: 0 / 0.7629 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.8159, allocations: 23.27 kB / 0.7629 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.8159, allocations: 3.953 kB / 0.7629 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.8159, allocations: 15.47 kB / 0.763 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.8159, allocations: 0 / 0.763 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8159, allocations: 0 / 0.763 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.8166, allocations: 0.5224 MB / 0.7635 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.8167, allocations: 96.89 kB / 0.7636 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.8167, allocations: 11.27 kB / 0.7636 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.8169, allocations: 39.06 kB / 0.7636 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.817, allocations: 29.67 kB / 0.7636 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.817, allocations: 7.719 kB / 0.7636 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001557/0.8172, allocations: 198.7 kB / 0.7638 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8172, allocations: 3.812 kB / 0.7638 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002807/0.8175, allocations: 60.69 kB / 0.7639 GB, free: 23.08 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.0002144/0.8177, allocations: 138.5 kB / 0.764 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.818, allocations: 270.2 kB / 0.7643 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.818, allocations: 0 / 0.7643 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.8182, allocations: 175 kB / 0.7644 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.8184, allocations: 28.62 kB / 0.7645 GB, free: 22.83 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007471/0.8192, allocations: 360.5 kB / 0.7648 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.8195, allocations: 0.757 MB / 0.7656 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.427e-05/0.8196, allocations: 16.88 kB / 0.7656 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.8197, allocations: 15.12 kB / 0.7656 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.8197, allocations: 0 / 0.7656 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of Templates: time 0.00538/0.8251, allocations: 2.522 MB / 0.7681 GB, free: 20.7 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)