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.007067/0.007067, allocations: 100.6 kB / 15.73 MB, free: 6.031 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.001701/0.001701, allocations: 192.5 kB / 16.67 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7072/0.7072, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 59.91 kB / 0.5808 GB, free: 8.07 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.372, allocations: 80.21 MB / 0.6592 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002633/0.3747, allocations: 1.945 MB / 0.6611 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3758, allocations: 0.7078 MB / 0.6618 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.3759, allocations: 2.75 kB / 0.6618 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002227/0.3762, allocations: 81.19 kB / 0.6618 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.3763, allocations: 99.72 kB / 0.6619 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005424/0.3768, allocations: 181.2 kB / 0.6621 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00031/0.3772, allocations: 267.4 kB / 0.6624 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.3773, allocations: 71.39 kB / 0.6624 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.3775, allocations: 115.8 kB / 0.6625 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.3777, allocations: 150.5 kB / 0.6627 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/0.3777, allocations: 20.31 kB / 0.6627 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.3779, allocations: 96.25 kB / 0.6628 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.181e-05/0.3779, allocations: 55.2 kB / 0.6629 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.881e-05/0.378, allocations: 106.8 kB / 0.663 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.3784, allocations: 322.6 kB / 0.6633 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3784, allocations: 0 / 0.6633 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3784, allocations: 1.531 kB / 0.6633 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.3784, allocations: 3.938 kB / 0.6633 GB, free: 7.312 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.0006763/0.3791, allocations: 0.5762 MB / 0.6638 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3791, allocations: 9.031 kB / 0.6638 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.678e-05/0.3792, allocations: 51.77 kB / 0.6639 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.628e-05/0.3792, allocations: 31.78 kB / 0.6639 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.3796, allocations: 301.7 kB / 0.6642 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.3796, allocations: 15.44 kB / 0.6642 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.3797, allocations: 16.98 kB / 0.6642 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.38, allocations: 225.2 kB / 0.6645 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.38, allocations: 0 / 0.6645 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.38, allocations: 6.781 kB / 0.6645 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3801, allocations: 2.531 kB / 0.6645 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.3803, allocations: 131.9 kB / 0.6646 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006316/0.3809, allocations: 0.6815 MB / 0.6653 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.3812, allocations: 171.6 kB / 0.6654 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.3814, allocations: 99.12 kB / 0.6655 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.3814, allocations: 1.25 kB / 0.6655 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.3816, allocations: 173.8 kB / 0.6657 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/0.3816, allocations: 1.156 kB / 0.6657 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005753/0.3822, allocations: 379 kB / 0.666 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.3823, allocations: 131.8 kB / 0.6662 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.3825, allocations: 280.3 kB / 0.6664 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3825, allocations: 32.11 kB / 0.6665 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.298e-05/0.3826, allocations: 154.5 kB / 0.6666 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.3826, allocations: 41.28 kB / 0.6667 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.3827, allocations: 45.98 kB / 0.6667 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.746e-05/0.3828, allocations: 345.8 kB / 0.667 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3829, allocations: 83.55 kB / 0.6671 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3831, allocations: 135.2 kB / 0.6672 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.3833, allocations: 242 kB / 0.6675 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3834, allocations: 0 / 0.6675 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004172/0.3838, allocations: 327.7 kB / 0.6678 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.3838, allocations: 41.69 kB / 0.6678 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3838, allocations: 1.688 kB / 0.6678 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.3838, allocations: 5.781 kB / 0.6678 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.384, allocations: 24.92 kB / 0.6678 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.384, allocations: 6.656 kB / 0.6679 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.3841, allocations: 26.17 kB / 0.6679 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.3841, allocations: 5.719 kB / 0.6679 GB, free: 3.637 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.0001273/0.3842, allocations: 195.5 kB / 0.6681 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.3843, allocations: 24.75 kB / 0.6681 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.3843, allocations: 34.64 kB / 0.6681 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3843, allocations: 1.188 kB / 0.6681 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3844, allocations: 3.938 kB / 0.6681 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3844, allocations: 1 kB / 0.6681 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.3845, allocations: 286 kB / 0.6684 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3846, allocations: 3.938 kB / 0.6684 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-05/0.3847, allocations: 19.7 kB / 0.6684 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3847, allocations: 1.094 kB / 0.6684 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.3847, allocations: 6.938 kB / 0.6684 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3847, allocations: 1.219 kB / 0.6684 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3847, allocations: 7.938 kB / 0.6684 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.3853, allocations: 464.5 kB / 0.6689 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.626e-05/0.3853, allocations: 95.39 kB / 0.669 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.3854, allocations: 7.562 kB / 0.669 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.647e-05/0.3855, allocations: 13.33 kB / 0.669 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.3856, allocations: 37.36 kB / 0.669 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.3856, allocations: 4.938 kB / 0.669 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001406/0.3857, allocations: 201.1 kB / 0.6692 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3857, allocations: 0 / 0.6692 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002598/0.386, allocations: 59.42 kB / 0.6693 GB, free: 2.594 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.0007867/0.3868, allocations: 1.024 MB / 0.6703 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003883/0.3872, allocations: 291.8 kB / 0.6706 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3872, allocations: 1.406 kB / 0.6706 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.3874, allocations: 184.8 kB / 0.6707 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.3877, allocations: 53.52 kB / 0.6708 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.3907, allocations: 2.78 MB / 0.6735 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.391, allocations: 0.7522 MB / 0.6742 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.995e-05/0.3911, allocations: 18.61 kB / 0.6743 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3912, allocations: 72.72 kB / 0.6743 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of SimCode: time 3.6e-07/0.3912, allocations: 1.312 kB / 0.6743 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.4158, allocations: 5.478 MB / 0.6797 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/8.038, allocations: 17.84 kB / 0.6797 GB, free: 12.05 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)