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.001246/0.001246, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7449/0.7449, allocations: 132.2 MB / 422.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.47 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3526, allocations: 80.2 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002857/0.3555, allocations: 1.949 MB / 0.5821 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.3565, allocations: 0.7108 MB / 0.5828 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.346e-05/0.3567, allocations: 11.56 kB / 0.5828 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.3569, allocations: 84.95 kB / 0.5829 GB, free: 2.691 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.357, allocations: 90.97 kB / 0.583 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005152/0.3575, allocations: 180.8 kB / 0.5831 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3578, allocations: 258.2 kB / 0.5834 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.3579, allocations: 75.67 kB / 0.5835 GB, free: 2.426 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.3581, allocations: 118.1 kB / 0.5836 GB, free: 2.375 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.3583, allocations: 145.8 kB / 0.5837 GB, free: 2.328 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.3583, allocations: 23.62 kB / 0.5837 GB, free: 2.324 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.3585, allocations: 90.66 kB / 0.5838 GB, free: 2.305 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.305e-05/0.3585, allocations: 57.27 kB / 0.5839 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.953e-05/0.3586, allocations: 108.5 kB / 0.584 GB, free: 2.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.359, allocations: 302.5 kB / 0.5843 GB, free: 2.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.359, allocations: 0 / 0.5843 GB, free: 2.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.359, allocations: 5.094 kB / 0.5843 GB, free: 2.066 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.359, allocations: 0 / 0.5843 GB, free: 2.066 MB / 430.1 MB 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.0006815/0.3597, allocations: 0.5829 MB / 0.5848 GB, free: 1.551 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.3597, allocations: 10.2 kB / 0.5849 GB, free: 1.551 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.3598, allocations: 46.52 kB / 0.5849 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/0.3598, allocations: 28.09 kB / 0.5849 GB, free: 1.492 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.3602, allocations: 301.9 kB / 0.5852 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3602, allocations: 15.66 kB / 0.5852 GB, free: 1.223 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.3603, allocations: 13.09 kB / 0.5852 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.3607, allocations: 225.1 kB / 0.5855 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3607, allocations: 0.875 kB / 0.5855 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3607, allocations: 6.156 kB / 0.5855 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3607, allocations: 2.781 kB / 0.5855 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.361, allocations: 132.2 kB / 0.5856 GB, free: 1.047 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007454/0.3617, allocations: 0.684 MB / 0.5863 GB, free: 500 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.3621, allocations: 168.8 kB / 0.5864 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.3623, allocations: 98.31 kB / 0.5865 GB, free: 392 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.3623, allocations: 1.766 kB / 0.5865 GB, free: 392 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.3626, allocations: 165.2 kB / 0.5867 GB, free: 288 kB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 2.174e-06/0.3626, allocations: 3.984 kB / 0.5867 GB, free: 284 kB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006737/0.3633, allocations: 387 kB / 0.587 GB, free: 124 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.3634, allocations: 132.9 kB / 0.5872 GB, free: 15.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.3636, allocations: 279.5 kB / 0.5874 GB, free: 15.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.3637, allocations: 33.08 kB / 0.5875 GB, free: 15.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3638, allocations: 158.7 kB / 0.5876 GB, free: 15.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.3638, allocations: 42.62 kB / 0.5877 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-05/0.3639, allocations: 41.23 kB / 0.5877 GB, free: 15.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.364, allocations: 346.6 kB / 0.588 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.3642, allocations: 85.59 kB / 0.5881 GB, free: 15.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.3644, allocations: 129.5 kB / 0.5882 GB, free: 15.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.3647, allocations: 242.1 kB / 0.5885 GB, free: 15.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3648, allocations: 0 / 0.5885 GB, free: 15.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004928/0.3652, allocations: 338.5 kB / 0.5888 GB, free: 14.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.3653, allocations: 36.78 kB / 0.5888 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3653, allocations: 0 / 0.5888 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.3653, allocations: 6.938 kB / 0.5888 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.3655, allocations: 28.77 kB / 0.5889 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.3655, allocations: 1.891 kB / 0.5889 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.3656, allocations: 26.78 kB / 0.5889 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.3656, allocations: 6.406 kB / 0.5889 GB, free: 14.81 MB / 446.1 MB 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.0001675/0.3658, allocations: 195 kB / 0.5891 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.3658, allocations: 25.25 kB / 0.5891 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.3659, allocations: 29.45 kB / 0.5891 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3659, allocations: 1.312 kB / 0.5891 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3659, allocations: 1.188 kB / 0.5891 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3659, allocations: 5.203 kB / 0.5891 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.3662, allocations: 288.9 kB / 0.5894 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3662, allocations: 0 / 0.5894 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.3663, allocations: 23.56 kB / 0.5894 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.3664, allocations: 1.531 kB / 0.5894 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.3664, allocations: 3.672 kB / 0.5894 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3664, allocations: 1.969 kB / 0.5894 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3664, allocations: 4 kB / 0.5894 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007505/0.3671, allocations: 468.4 kB / 0.5899 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.3672, allocations: 104.3 kB / 0.59 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.3673, allocations: 4.422 kB / 0.59 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3674, allocations: 20.09 kB / 0.59 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.3675, allocations: 31.22 kB / 0.59 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.3675, allocations: 5.875 kB / 0.5901 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.3677, allocations: 202.7 kB / 0.5902 GB, free: 13.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3677, allocations: 1.219 kB / 0.5902 GB, free: 13.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.3679, allocations: 56.28 kB / 0.5903 GB, free: 13.9 MB / 446.1 MB 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.00101/0.369, allocations: 1.032 MB / 0.5913 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.3695, allocations: 293.6 kB / 0.5916 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3695, allocations: 0 / 0.5916 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.3697, allocations: 186.3 kB / 0.5918 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.37, allocations: 40.67 kB / 0.5918 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/0.3732, allocations: 2.761 MB / 0.5945 GB, free: 11.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.3735, allocations: 0.7489 MB / 0.5952 GB, free: 10.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.435e-05/0.3736, allocations: 19.06 kB / 0.5952 GB, free: 10.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.795e-05/0.3737, allocations: 72.12 kB / 0.5953 GB, free: 10.41 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3737, allocations: 0 / 0.5953 GB, free: 10.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4206/0.7943, allocations: 5.324 MB / 0.6005 GB, free: 8.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.236/8.031, allocations: 9.031 kB / 0.6005 GB, free: 8.348 MB / 446.1 MB (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)