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.005044/0.005044, allocations: 102.6 kB / 15.73 MB, free: 5.992 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.001313/0.001313, allocations: 191.2 kB / 16.67 MB, free: 5.91 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9851/0.9851, allocations: 135.5 MB / 426.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 72.08 kB / 0.5857 GB, free: 3.219 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3819, allocations: 81.03 MB / 0.6649 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002736/0.3847, allocations: 1.933 MB / 0.6668 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009349/0.3857, allocations: 0.71 MB / 0.6674 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.127e-05/0.3858, allocations: 7.75 kB / 0.6675 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.386, allocations: 73.41 kB / 0.6675 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.3861, allocations: 92.91 kB / 0.6676 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004835/0.3866, allocations: 182 kB / 0.6678 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.3868, allocations: 274.5 kB / 0.668 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.387, allocations: 64.98 kB / 0.6681 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.3871, allocations: 125.7 kB / 0.6682 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.3873, allocations: 143.5 kB / 0.6684 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.3873, allocations: 20.59 kB / 0.6684 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.3875, allocations: 94.02 kB / 0.6685 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.106e-05/0.3876, allocations: 69.31 kB / 0.6685 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.3877, allocations: 102 kB / 0.6686 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.388, allocations: 315.5 kB / 0.6689 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.388, allocations: 0 / 0.6689 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.388, allocations: 4 kB / 0.6689 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.388, allocations: 0 / 0.6689 GB, free: 3.93 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.0006935/0.3887, allocations: 0.5842 MB / 0.6695 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3887, allocations: 9.969 kB / 0.6695 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.401e-05/0.3888, allocations: 47.98 kB / 0.6696 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.061e-05/0.3888, allocations: 31.22 kB / 0.6696 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.3892, allocations: 306.3 kB / 0.6699 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3893, allocations: 14.91 kB / 0.6699 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.3893, allocations: 13.06 kB / 0.6699 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.3896, allocations: 237.8 kB / 0.6701 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.3896, allocations: 0 / 0.6701 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3897, allocations: 6.938 kB / 0.6702 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.3897, allocations: 2.969 kB / 0.6702 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.3899, allocations: 135.7 kB / 0.6703 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.3905, allocations: 0.6888 MB / 0.671 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.3909, allocations: 163.8 kB / 0.6711 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.391, allocations: 107.1 kB / 0.6712 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.391, allocations: 1.156 kB / 0.6712 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.3913, allocations: 166.2 kB / 0.6714 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3913, allocations: 1.031 kB / 0.6714 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005913/0.3919, allocations: 374.3 kB / 0.6717 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.3919, allocations: 140.5 kB / 0.6719 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.3921, allocations: 275.2 kB / 0.6721 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3922, allocations: 37 kB / 0.6722 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.498e-05/0.3923, allocations: 154.9 kB / 0.6723 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.3923, allocations: 48.98 kB / 0.6724 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.3924, allocations: 37.98 kB / 0.6724 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/0.3924, allocations: 342.2 kB / 0.6727 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.3926, allocations: 87.19 kB / 0.6728 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.3928, allocations: 132.9 kB / 0.6729 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.393, allocations: 240.6 kB / 0.6732 GB, free: 488 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3931, allocations: 0 / 0.6732 GB, free: 488 kB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004349/0.3935, allocations: 346.7 kB / 0.6735 GB, free: 308 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3935, allocations: 32.64 kB / 0.6735 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3935, allocations: 1.125 kB / 0.6735 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3936, allocations: 2.656 kB / 0.6735 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3937, allocations: 29.39 kB / 0.6736 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3937, allocations: 9.375 kB / 0.6736 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.3938, allocations: 23.5 kB / 0.6736 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.3938, allocations: 9.078 kB / 0.6736 GB, free: 240 kB / 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.0001197/0.394, allocations: 190.1 kB / 0.6738 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.394, allocations: 29.25 kB / 0.6738 GB, free: 48 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.666e-05/0.3941, allocations: 27.11 kB / 0.6738 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3941, allocations: 1.031 kB / 0.6738 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3941, allocations: 9.312 kB / 0.6738 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3941, allocations: 3.938 kB / 0.6738 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.3944, allocations: 286.2 kB / 0.6741 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3944, allocations: 0 / 0.6741 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3945, allocations: 19.73 kB / 0.6741 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3945, allocations: 1.25 kB / 0.6741 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3945, allocations: 2.938 kB / 0.6741 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3945, allocations: 9.391 kB / 0.6741 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3945, allocations: 3.938 kB / 0.6742 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/0.3953, allocations: 464.4 kB / 0.6746 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.446e-05/0.3954, allocations: 98.84 kB / 0.6747 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.3954, allocations: 8.516 kB / 0.6747 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.3955, allocations: 15.8 kB / 0.6747 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.623e-05/0.3956, allocations: 26.5 kB / 0.6747 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.3957, allocations: 3.875 kB / 0.6747 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000201/0.3959, allocations: 213.7 kB / 0.6749 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3959, allocations: 0 / 0.6749 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002866/0.3962, allocations: 59.27 kB / 0.675 GB, free: 15.19 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.001163/0.3973, allocations: 1.026 MB / 0.676 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005179/0.3979, allocations: 291.1 kB / 0.6763 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3979, allocations: 0 / 0.6763 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002449/0.3981, allocations: 180.5 kB / 0.6765 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.3985, allocations: 48.62 kB / 0.6765 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.4023, allocations: 2.779 MB / 0.6792 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004485/0.4028, allocations: 0.7567 MB / 0.68 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.322e-05/0.4029, allocations: 19.44 kB / 0.68 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.403, allocations: 80 kB / 0.68 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of SimCode: time 4.81e-07/0.403, allocations: 3.938 kB / 0.6801 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03043/0.4335, allocations: 5.385 MB / 0.6853 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.438, allocations: 7.5 kB / 0.6853 GB, free: 8.676 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)