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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008309/0.008309, allocations: 95.58 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002055/0.002055, allocations: 204.6 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7719/0.7719, allocations: 132.2 MB / 422.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.77 kB / 0.5809 GB, free: 1.152 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1623, allocations: 80.21 MB / 0.6592 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003045/0.1653, allocations: 1.951 MB / 0.6611 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1666, allocations: 0.717 MB / 0.6618 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1667, allocations: 4 kB / 0.6618 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.1669, allocations: 87.62 kB / 0.6619 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.167, allocations: 87.64 kB / 0.662 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.1676, allocations: 189.7 kB / 0.6621 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.1679, allocations: 263.4 kB / 0.6624 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1681, allocations: 81.78 kB / 0.6625 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.1683, allocations: 111.7 kB / 0.6626 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1685, allocations: 151.5 kB / 0.6627 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1685, allocations: 20 kB / 0.6627 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1687, allocations: 91.88 kB / 0.6628 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.369e-05/0.1688, allocations: 59.83 kB / 0.6629 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.1689, allocations: 107.3 kB / 0.663 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.1693, allocations: 310.8 kB / 0.6633 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1693, allocations: 0 / 0.6633 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1693, allocations: 0 / 0.6633 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.228e-06/0.1693, allocations: 0 / 0.6633 GB, free: 9.848 MB / 0.4981 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.0008639/0.1702, allocations: 0.5933 MB / 0.6639 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1702, allocations: 8.031 kB / 0.6639 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.29e-05/0.1703, allocations: 50.73 kB / 0.6639 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.491e-05/0.1703, allocations: 28.75 kB / 0.6639 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.1708, allocations: 299.1 kB / 0.6642 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.1708, allocations: 19.94 kB / 0.6642 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.1709, allocations: 16 kB / 0.6643 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.1713, allocations: 219.1 kB / 0.6645 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1713, allocations: 0 / 0.6645 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.1713, allocations: 4 kB / 0.6645 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1713, allocations: 4 kB / 0.6645 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.1716, allocations: 140.3 kB / 0.6646 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008411/0.1724, allocations: 0.6808 MB / 0.6653 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003728/0.1728, allocations: 166.5 kB / 0.6654 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.173, allocations: 101.1 kB / 0.6655 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.173, allocations: 0 / 0.6655 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.1733, allocations: 169 kB / 0.6657 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.1733, allocations: 7.938 kB / 0.6657 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007073/0.1741, allocations: 371.2 kB / 0.6661 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/0.1742, allocations: 136.5 kB / 0.6662 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1744, allocations: 282.6 kB / 0.6665 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.1745, allocations: 33.7 kB / 0.6665 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1746, allocations: 148.4 kB / 0.6666 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/0.1747, allocations: 55.56 kB / 0.6667 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.1748, allocations: 45.7 kB / 0.6667 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1749, allocations: 338.8 kB / 0.667 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.1751, allocations: 83.95 kB / 0.6671 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.1753, allocations: 137 kB / 0.6673 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.1757, allocations: 245 kB / 0.6675 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1757, allocations: 0 / 0.6675 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005144/0.1762, allocations: 331 kB / 0.6678 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.1763, allocations: 45.78 kB / 0.6679 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1763, allocations: 4 kB / 0.6679 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1763, allocations: 0 / 0.6679 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1764, allocations: 27.92 kB / 0.6679 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.1764, allocations: 3.938 kB / 0.6679 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.1766, allocations: 27.83 kB / 0.6679 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.1766, allocations: 8 kB / 0.6679 GB, free: 4.738 MB / 0.4981 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001849/0.1768, allocations: 191.5 kB / 0.6681 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.1768, allocations: 23.86 kB / 0.6681 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.061e-05/0.1769, allocations: 25.83 kB / 0.6682 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1769, allocations: 4 kB / 0.6682 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.1769, allocations: 7.938 kB / 0.6682 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1769, allocations: 0 / 0.6682 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.1772, allocations: 301.4 kB / 0.6684 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1772, allocations: 0 / 0.6684 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.1773, allocations: 15.94 kB / 0.6685 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1773, allocations: 3.984 kB / 0.6685 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.1774, allocations: 8 kB / 0.6685 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1774, allocations: 0 / 0.6685 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1774, allocations: 3.938 kB / 0.6685 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007257/0.1781, allocations: 465.6 kB / 0.6689 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.1782, allocations: 108.8 kB / 0.669 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.1782, allocations: 8 kB / 0.669 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.1784, allocations: 16.05 kB / 0.6691 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/0.1784, allocations: 23.91 kB / 0.6691 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.1785, allocations: 11.98 kB / 0.6691 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001905/0.1787, allocations: 198.1 kB / 0.6693 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1787, allocations: 0 / 0.6693 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002637/0.1789, allocations: 63.83 kB / 0.6693 GB, free: 3.188 MB / 0.4981 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001098/0.18, allocations: 1.022 MB / 0.6703 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004952/0.1805, allocations: 287.2 kB / 0.6706 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1806, allocations: 256 / 0.6706 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.1808, allocations: 195.3 kB / 0.6708 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.1811, allocations: 28.48 kB / 0.6708 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.1847, allocations: 2.79 MB / 0.6735 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.1851, allocations: 0.7482 MB / 0.6743 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.868e-05/0.1851, allocations: 21.55 kB / 0.6743 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.1853, allocations: 75.41 kB / 0.6744 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1853, allocations: 0 / 0.6744 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.2122, allocations: 5.385 MB / 0.6796 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.126, allocations: 20.39 kB / 0.6796 GB, free: 8.578 MB / 0.5137 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/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)