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.0008415/0.0008415, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.00469/0.00469, allocations: 169.8 kB / 16.26 MB, free: 6.68 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.232/1.232, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6965/0.6965, allocations: 132.3 MB / 423.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002968, allocations: 8 kB / 0.5041 GB, free: 3.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3382, allocations: 81.57 MB / 0.5837 GB, free: 3.891 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001707/0.34, allocations: 1.646 MB / 0.5854 GB, free: 2.695 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009367/0.3409, allocations: 0.7174 MB / 0.5861 GB, free: 2.199 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.341, allocations: 2.5 kB / 0.5861 GB, free: 2.199 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.3412, allocations: 69.7 kB / 0.5861 GB, free: 2.191 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3414, allocations: 90.73 kB / 0.5862 GB, free: 2.164 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.3418, allocations: 158 kB / 0.5864 GB, free: 2.078 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.342, allocations: 240.8 kB / 0.5866 GB, free: 1.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.3422, allocations: 62.72 kB / 0.5866 GB, free: 1.949 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.3423, allocations: 93.31 kB / 0.5867 GB, free: 1.918 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.3425, allocations: 131.5 kB / 0.5869 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.3425, allocations: 5.625 kB / 0.5869 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.3427, allocations: 72.89 kB / 0.5869 GB, free: 1.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.149e-05/0.3427, allocations: 44.83 kB / 0.587 GB, free: 1.844 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.96e-05/0.3428, allocations: 123.8 kB / 0.5871 GB, free: 1.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.3431, allocations: 277.8 kB / 0.5874 GB, free: 1.652 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3431, allocations: 1.5 kB / 0.5874 GB, free: 1.652 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3432, allocations: 0 / 0.5874 GB, free: 1.652 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.3432, allocations: 0 / 0.5874 GB, free: 1.652 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.0006393/0.3438, allocations: 0.5422 MB / 0.5879 GB, free: 1.168 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3438, allocations: 11.02 kB / 0.5879 GB, free: 1.168 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3439, allocations: 50.86 kB / 0.588 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.3439, allocations: 30.95 kB / 0.588 GB, free: 1.102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3443, allocations: 306.4 kB / 0.5883 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.3444, allocations: 23.75 kB / 0.5883 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.3444, allocations: 13.06 kB / 0.5883 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.3448, allocations: 228.5 kB / 0.5885 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.3448, allocations: 0.5625 kB / 0.5885 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.3448, allocations: 3.328 kB / 0.5885 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3448, allocations: 2.906 kB / 0.5885 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.3451, allocations: 139.8 kB / 0.5887 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006896/0.3458, allocations: 0.6865 MB / 0.5893 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.3462, allocations: 183.5 kB / 0.5895 GB, free: 20 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.3464, allocations: 105.1 kB / 0.5896 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.3464, allocations: 1.812 kB / 0.5896 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.3467, allocations: 180.8 kB / 0.5898 GB, free: 15.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.3467, allocations: 0 / 0.5898 GB, free: 15.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007134/0.3474, allocations: 388.5 kB / 0.5902 GB, free: 15.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.3475, allocations: 142.3 kB / 0.5903 GB, free: 15.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.3478, allocations: 275.4 kB / 0.5906 GB, free: 15.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.3478, allocations: 32.45 kB / 0.5906 GB, free: 15.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.3479, allocations: 154.5 kB / 0.5907 GB, free: 15.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.348, allocations: 46.31 kB / 0.5908 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.348, allocations: 23.86 kB / 0.5908 GB, free: 15.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3481, allocations: 342.3 kB / 0.5911 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.3483, allocations: 93.3 kB / 0.5912 GB, free: 14.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.3485, allocations: 134 kB / 0.5913 GB, free: 14.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003475/0.3489, allocations: 245.2 kB / 0.5916 GB, free: 14.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3489, allocations: 3.938 kB / 0.5916 GB, free: 14.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005362/0.3495, allocations: 349.6 kB / 0.5919 GB, free: 14.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.3495, allocations: 36.47 kB / 0.592 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.3495, allocations: 5.062 kB / 0.592 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3495, allocations: 2.469 kB / 0.592 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.3497, allocations: 27.23 kB / 0.592 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3497, allocations: 5.5 kB / 0.592 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.3498, allocations: 38.06 kB / 0.592 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.3498, allocations: 6.469 kB / 0.592 GB, free: 14.41 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.0001658/0.35, allocations: 194.3 kB / 0.5922 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.35, allocations: 25.28 kB / 0.5922 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.546e-05/0.3501, allocations: 27.23 kB / 0.5923 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3501, allocations: 1.781 kB / 0.5923 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3501, allocations: 4 kB / 0.5923 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3501, allocations: 9.438 kB / 0.5923 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.3504, allocations: 288.4 kB / 0.5926 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3504, allocations: 0.5312 kB / 0.5926 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.3505, allocations: 21.52 kB / 0.5926 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3505, allocations: 0.8438 kB / 0.5926 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.3505, allocations: 8.797 kB / 0.5926 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3506, allocations: 1.188 kB / 0.5926 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3506, allocations: 0 / 0.5926 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.3513, allocations: 482.2 kB / 0.593 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.155e-05/0.3514, allocations: 99.88 kB / 0.5931 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3514, allocations: 4.281 kB / 0.5931 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3516, allocations: 23.55 kB / 0.5932 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.3516, allocations: 32.95 kB / 0.5932 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.3517, allocations: 9.812 kB / 0.5932 GB, free: 13.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.3519, allocations: 203 kB / 0.5934 GB, free: 13.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3519, allocations: 0 / 0.5934 GB, free: 13.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002679/0.3521, allocations: 56.78 kB / 0.5935 GB, free: 13.5 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.001056/0.3532, allocations: 1.033 MB / 0.5945 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.3537, allocations: 303.2 kB / 0.5948 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3537, allocations: 0 / 0.5948 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.3539, allocations: 187.5 kB / 0.5949 GB, free: 12.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3542, allocations: 43.89 kB / 0.595 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.3578, allocations: 2.849 MB / 0.5978 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.3581, allocations: 0.7548 MB / 0.5985 GB, free: 10 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.959e-05/0.3582, allocations: 19.38 kB / 0.5985 GB, free: 9.992 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3583, allocations: 70.42 kB / 0.5986 GB, free: 9.938 MB / 446.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3583, allocations: 0 / 0.5986 GB, free: 9.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5211/0.8794, allocations: 4.84 MB / 0.6033 GB, free: 8.164 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.8796, allocations: 185.9 kB / 0.6035 GB, free: 7.906 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.161/3.04, allocations: 7.938 kB / 0.6035 GB, free: 7.898 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)