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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008074/0.008074, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001881/0.001881, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9768/0.9768, allocations: 135.1 MB / 425.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 63.91 kB / 0.5851 GB, free: 3.906 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.377, allocations: 80.92 MB / 0.6641 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002936/0.38, allocations: 1.944 MB / 0.666 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.3812, allocations: 0.702 MB / 0.6667 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.3814, allocations: 6.844 kB / 0.6667 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.3816, allocations: 82.48 kB / 0.6668 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.3818, allocations: 92.5 kB / 0.6669 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005858/0.3824, allocations: 187.1 kB / 0.6671 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.3826, allocations: 258.2 kB / 0.6673 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.3828, allocations: 78.11 kB / 0.6674 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.3829, allocations: 118.5 kB / 0.6675 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.3831, allocations: 147.3 kB / 0.6677 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.44e-05/0.3831, allocations: 20 kB / 0.6677 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.3833, allocations: 101.8 kB / 0.6678 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.644e-05/0.3833, allocations: 57.83 kB / 0.6678 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.158e-05/0.3834, allocations: 105.3 kB / 0.6679 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.3837, allocations: 315.1 kB / 0.6682 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3838, allocations: 1.344 kB / 0.6682 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3838, allocations: 0 / 0.6682 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.3838, allocations: 3.938 kB / 0.6682 GB, free: 4.242 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.0007845/0.3846, allocations: 0.5878 MB / 0.6688 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3846, allocations: 9.25 kB / 0.6688 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.3847, allocations: 52.19 kB / 0.6689 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.3848, allocations: 32.03 kB / 0.6689 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.3853, allocations: 305.8 kB / 0.6692 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.3853, allocations: 18.06 kB / 0.6692 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.3854, allocations: 13.81 kB / 0.6692 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.3858, allocations: 222.6 kB / 0.6694 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3858, allocations: 0 / 0.6694 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.3858, allocations: 6.719 kB / 0.6694 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3858, allocations: 6.719 kB / 0.6694 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.3861, allocations: 127.6 kB / 0.6696 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.3868, allocations: 0.6811 MB / 0.6702 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.3871, allocations: 175.6 kB / 0.6704 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.3873, allocations: 100 kB / 0.6705 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.3873, allocations: 1.469 kB / 0.6705 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.3876, allocations: 178 kB / 0.6707 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3876, allocations: 0 / 0.6707 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.000647/0.3882, allocations: 369 kB / 0.671 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.3883, allocations: 136.5 kB / 0.6711 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.3885, allocations: 277 kB / 0.6714 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3886, allocations: 32.33 kB / 0.6714 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.3887, allocations: 158.2 kB / 0.6716 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.3887, allocations: 54.17 kB / 0.6716 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.3888, allocations: 37.09 kB / 0.6717 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.3888, allocations: 338.2 kB / 0.672 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.389, allocations: 87.92 kB / 0.6721 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.3892, allocations: 135.6 kB / 0.6722 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.3895, allocations: 237.5 kB / 0.6724 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3895, allocations: 1 kB / 0.6724 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004578/0.39, allocations: 340.4 kB / 0.6728 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.39, allocations: 41.31 kB / 0.6728 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.39, allocations: 1.594 kB / 0.6728 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.39, allocations: 1.469 kB / 0.6728 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3902, allocations: 21.39 kB / 0.6728 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3902, allocations: 9.125 kB / 0.6728 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.3903, allocations: 27.53 kB / 0.6729 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.3903, allocations: 5.938 kB / 0.6729 GB, free: 0.5586 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.0001478/0.3905, allocations: 194 kB / 0.6731 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.3905, allocations: 28.31 kB / 0.6731 GB, free: 376 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/0.3906, allocations: 32.98 kB / 0.6731 GB, free: 356 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3906, allocations: 0 / 0.6731 GB, free: 356 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3906, allocations: 3.938 kB / 0.6731 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3906, allocations: 1.812 kB / 0.6731 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.3908, allocations: 288.3 kB / 0.6734 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3908, allocations: 1.125 kB / 0.6734 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.3909, allocations: 19.89 kB / 0.6734 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3909, allocations: 5.25 kB / 0.6734 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.391, allocations: 2.562 kB / 0.6734 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.391, allocations: 1.25 kB / 0.6734 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.391, allocations: 3.938 kB / 0.6734 GB, free: 48 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008066/0.3918, allocations: 472.8 kB / 0.6739 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.857e-05/0.3919, allocations: 94.31 kB / 0.674 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.3919, allocations: 16.36 kB / 0.674 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.392, allocations: 12.77 kB / 0.674 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.077e-05/0.3921, allocations: 37.77 kB / 0.674 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.3922, allocations: 7.812 kB / 0.674 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001916/0.3924, allocations: 203.2 kB / 0.6742 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3924, allocations: 0 / 0.6742 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003232/0.3927, allocations: 58.59 kB / 0.6743 GB, free: 15.5 MB / 0.5137 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.00115/0.3938, allocations: 1.032 MB / 0.6753 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005206/0.3944, allocations: 293.9 kB / 0.6756 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3944, allocations: 4 kB / 0.6756 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3947, allocations: 177.7 kB / 0.6758 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.395, allocations: 43.88 kB / 0.6758 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004364/0.3994, allocations: 2.784 MB / 0.6785 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.3999, allocations: 0.7535 MB / 0.6792 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001314/0.4, allocations: 22.69 kB / 0.6793 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.4001, allocations: 68.92 kB / 0.6793 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of SimCode: time 5.11e-07/0.4001, allocations: 0 / 0.6793 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.424, allocations: 5.394 MB / 0.6846 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.966, allocations: 7.281 kB / 0.6846 GB, free: 8.992 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)