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.00121/0.00121, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001083/0.001083, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.218/1.218, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.686/0.686, allocations: 132.2 MB / 422.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.5 kB / 0.5014 GB, free: 4.113 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3205, allocations: 80.2 MB / 0.5797 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002465/0.323, allocations: 1.995 MB / 0.5816 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008838/0.3239, allocations: 0.6974 MB / 0.5823 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.344e-05/0.324, allocations: 1.938 kB / 0.5823 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.3242, allocations: 81.33 kB / 0.5824 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.3243, allocations: 90.81 kB / 0.5825 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.3248, allocations: 179.7 kB / 0.5826 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.325, allocations: 256.9 kB / 0.5829 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.3251, allocations: 71.23 kB / 0.583 GB, free: 2.402 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.3253, allocations: 120 kB / 0.5831 GB, free: 2.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.3254, allocations: 150.6 kB / 0.5832 GB, free: 2.301 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.3255, allocations: 21 kB / 0.5832 GB, free: 2.301 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.3256, allocations: 94.84 kB / 0.5833 GB, free: 2.277 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.39e-05/0.3257, allocations: 53.84 kB / 0.5834 GB, free: 2.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.898e-05/0.3258, allocations: 113 kB / 0.5835 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.3261, allocations: 298 kB / 0.5838 GB, free: 2.047 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3261, allocations: 5.062 kB / 0.5838 GB, free: 2.043 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3261, allocations: 0 / 0.5838 GB, free: 2.043 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3261, allocations: 0.5625 kB / 0.5838 GB, free: 2.043 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.0006344/0.3267, allocations: 0.583 MB / 0.5843 GB, free: 1.527 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.3268, allocations: 9.531 kB / 0.5844 GB, free: 1.527 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.3268, allocations: 51.91 kB / 0.5844 GB, free: 1.477 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.3269, allocations: 30.69 kB / 0.5844 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.3272, allocations: 302.5 kB / 0.5847 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.3272, allocations: 15.62 kB / 0.5847 GB, free: 1.191 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.3273, allocations: 13.88 kB / 0.5847 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.3276, allocations: 224.8 kB / 0.585 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3276, allocations: 0 / 0.585 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.3276, allocations: 6.469 kB / 0.585 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3277, allocations: 2.75 kB / 0.585 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.3279, allocations: 129.8 kB / 0.5851 GB, free: 1.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.3285, allocations: 0.6823 MB / 0.5858 GB, free: 472 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.3288, allocations: 169 kB / 0.5859 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.329, allocations: 99.12 kB / 0.586 GB, free: 364 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.329, allocations: 1.375 kB / 0.586 GB, free: 364 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.3293, allocations: 168.4 kB / 0.5862 GB, free: 256 kB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.3293, allocations: 0 / 0.5862 GB, free: 256 kB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005911/0.3299, allocations: 379.6 kB / 0.5865 GB, free: 104 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.675e-05/0.33, allocations: 136.8 kB / 0.5867 GB, free: 15.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.3302, allocations: 276.1 kB / 0.5869 GB, free: 15.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.3303, allocations: 32.45 kB / 0.587 GB, free: 15.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3304, allocations: 156.7 kB / 0.5871 GB, free: 15.63 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.3304, allocations: 40.11 kB / 0.5872 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.3305, allocations: 45.08 kB / 0.5872 GB, free: 15.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3306, allocations: 343.2 kB / 0.5875 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.3308, allocations: 89.33 kB / 0.5876 GB, free: 15.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.331, allocations: 130.3 kB / 0.5877 GB, free: 15.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.3313, allocations: 242 kB / 0.588 GB, free: 14.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3313, allocations: 1.422 kB / 0.588 GB, free: 14.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004849/0.3318, allocations: 341.7 kB / 0.5883 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.3319, allocations: 40.08 kB / 0.5883 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3319, allocations: 5.469 kB / 0.5883 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.3319, allocations: 1.812 kB / 0.5883 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.332, allocations: 21.95 kB / 0.5884 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.332, allocations: 2.344 kB / 0.5884 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3321, allocations: 30.19 kB / 0.5884 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.3322, allocations: 9.688 kB / 0.5884 GB, free: 14.79 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.0001627/0.3323, allocations: 199 kB / 0.5886 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.3324, allocations: 25.94 kB / 0.5886 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.252e-05/0.3324, allocations: 33.7 kB / 0.5886 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3324, allocations: 1.906 kB / 0.5886 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3324, allocations: 1.25 kB / 0.5886 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3325, allocations: 4.547 kB / 0.5887 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.3327, allocations: 280.4 kB / 0.5889 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3327, allocations: 1.156 kB / 0.5889 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.546e-05/0.3328, allocations: 18.56 kB / 0.5889 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3328, allocations: 0.9062 kB / 0.5889 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3328, allocations: 12.77 kB / 0.589 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3329, allocations: 1.188 kB / 0.589 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3329, allocations: 0 / 0.589 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/0.3336, allocations: 473.5 kB / 0.5894 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.3336, allocations: 96.42 kB / 0.5895 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.3337, allocations: 7.891 kB / 0.5895 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.3338, allocations: 16 kB / 0.5895 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.3338, allocations: 31.91 kB / 0.5896 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.3339, allocations: 9.391 kB / 0.5896 GB, free: 14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.3341, allocations: 202.8 kB / 0.5898 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3341, allocations: 0.7188 kB / 0.5898 GB, free: 13.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.3343, allocations: 52.41 kB / 0.5898 GB, free: 13.88 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.0009978/0.3353, allocations: 1.033 MB / 0.5908 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004459/0.3358, allocations: 292.5 kB / 0.5911 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3358, allocations: 0.9688 kB / 0.5911 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.336, allocations: 190.5 kB / 0.5913 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.3363, allocations: 37.3 kB / 0.5913 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.3395, allocations: 2.817 MB / 0.5941 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3398, allocations: 0.7505 MB / 0.5948 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.371e-05/0.3399, allocations: 19.19 kB / 0.5948 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.707e-05/0.34, allocations: 71.17 kB / 0.5949 GB, free: 10.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.34, allocations: 0 / 0.5949 GB, free: 10.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.287/2.627, allocations: 5.087 MB / 0.5998 GB, free: 8.508 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/2.627, allocations: 190.4 kB / 0.6 GB, free: 8.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/4.645, allocations: 0 / 0.6 GB, free: 8.25 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)