Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestDutyCycleGenerator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(MEV.Test.TestDutyCycleGenerator,fileNamePrefix="MEV_MEV_Test_TestDutyCycleGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestDutyCycleGenerator,fileNamePrefix="MEV_MEV_Test_TestDutyCycleGenerator",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.006234/0.00624, allocations: 100.9 kB / 15.73 MB, free: 6.027 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.001289/0.001289, allocations: 193.1 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009162/0.009163, allocations: 1.932 MB / 271.8 MB, free: 3.258 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001559/0.00156, allocations: 71.89 kB / 377.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08389, allocations: 47.14 MB / 424.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.002535/0.08646, allocations: 1.377 MB / 426.3 MB, free: 316 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002842/0.08677, allocations: 95.73 kB / 426.4 MB, free: 220 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.177e-05/0.08682, allocations: 0 / 426.4 MB, free: 220 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.08688, allocations: 7.984 kB / 426.4 MB, free: 212 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.252e-05/0.08693, allocations: 3.938 kB / 426.4 MB, free: 208 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.0871, allocations: 11.94 kB / 426.4 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.803e-05/0.08717, allocations: 23.92 kB / 426.4 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.08728, allocations: 11.97 kB / 426.4 MB, free: 160 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.097e-05/0.08732, allocations: 11.94 kB / 426.4 MB, free: 148 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.25e-05/0.08738, allocations: 19.91 kB / 426.4 MB, free: 128 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.0874, allocations: 0 / 426.4 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.726e-06/0.08742, allocations: 4 kB / 426.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.774e-05/0.08744, allocations: 4 kB / 426.4 MB, free: 120 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.08749, allocations: 11.94 kB / 426.5 MB, free: 108 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.304e-05/0.08758, allocations: 32.12 kB / 426.5 MB, free: 76 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.08759, allocations: 0 / 426.5 MB, free: 76 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08759, allocations: 0 / 426.5 MB, free: 76 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.0876, allocations: 0 / 426.5 MB, free: 76 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.1623/0.2499, allocations: 333.1 kB / 426.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2499, allocations: 13.11 kB / 426.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.814e-05/0.25, allocations: 32.34 kB / 426.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.25, allocations: 7.344 kB / 426.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.352e-05/0.2501, allocations: 163.6 kB / 427 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.2501, allocations: 3.125 kB / 427 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.2501, allocations: 1.938 kB / 427 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.2503, allocations: 53.84 kB / 427.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.2503, allocations: 3.938 kB / 427.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.2503, allocations: 0 / 427.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2503, allocations: 2.75 kB / 427.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.2504, allocations: 29.97 kB / 427.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.2507, allocations: 259.6 kB / 427.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.2509, allocations: 58.61 kB / 427.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.087e-05/0.251, allocations: 25.91 kB / 427.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.251, allocations: 1.219 kB / 427.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.2512, allocations: 65.55 kB / 427.5 MB, free: 11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.2512, allocations: 1.469 kB / 427.5 MB, free: 11 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002803/0.2515, allocations: 92.34 kB / 427.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.2516, allocations: 53.08 kB / 427.7 MB, free: 10.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.2516, allocations: 106 kB / 427.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-06/0.2516, allocations: 27.23 kB / 427.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.149e-05/0.2517, allocations: 81.91 kB / 427.9 MB, free: 10.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.2517, allocations: 14.34 kB / 427.9 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.2517, allocations: 21.42 kB / 427.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.2518, allocations: 313.6 kB / 428.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.704e-05/0.2518, allocations: 16.53 kB / 428.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.745e-05/0.2519, allocations: 32.94 kB / 428.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.252, allocations: 60.78 kB / 428.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.252, allocations: 0 / 428.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001444/0.2522, allocations: 76.7 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2522, allocations: 5.375 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2522, allocations: 5.141 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2522, allocations: 1.188 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.323e-05/0.2523, allocations: 11.47 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2523, allocations: 2.672 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.831e-05/0.2524, allocations: 8.297 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.2524, allocations: 1.25 kB / 428.4 MB, free: 10.28 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,dutyCycleGenerator.offTime,$PRE.dutyCycleGenerator.offTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 4.659e-05/0.2524, allocations: 121.4 kB / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.2524, allocations: 1.344 kB / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.597e-05/0.2525, allocations: 12.75 kB / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2525, allocations: 4.922 kB / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2525, allocations: 0 / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2525, allocations: 0.7031 kB / 428.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.786e-05/0.2526, allocations: 170.5 kB / 428.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2526, allocations: 0 / 428.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.196e-05/0.2526, allocations: 8.141 kB / 428.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2527, allocations: 4.766 kB / 428.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.2527, allocations: 3.469 kB / 428.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2527, allocations: 0 / 428.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2527, allocations: 1.75 kB / 428.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.2528, allocations: 98.78 kB / 428.9 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.588e-05/0.2529, allocations: 81.89 kB / 428.9 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.2529, allocations: 2.219 kB / 428.9 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.154e-05/0.2529, allocations: 8.094 kB / 428.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.253, allocations: 8.062 kB / 429 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.253, allocations: 1.406 kB / 429 MB, free: 9.789 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.12e-05/0.253, allocations: 81.73 kB / 429 MB, free: 9.715 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.22e-07/0.253, allocations: 0 / 429 MB, free: 9.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000186/0.2532, allocations: 12.7 kB / 429 MB, free: 9.711 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,dutyCycleGenerator.offTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002943/0.2535, allocations: 0.6347 MB / 429.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.2537, allocations: 44.84 kB / 429.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2537, allocations: 0 / 429.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.924e-05/0.2538, allocations: 21.94 kB / 429.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001468/0.2539, allocations: 1.844 kB / 429.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.2543, allocations: 149 kB / 429.9 MB, free: 8.957 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.012e-05/0.2544, allocations: 0.6792 MB / 430.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.324e-05/0.2544, allocations: 2.719 kB / 430.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.2544, allocations: 13.05 kB / 430.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2544, allocations: 0 / 430.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.2708, allocations: 1.288 MB / 431.9 MB, free: 7.812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.448, allocations: 15.92 kB / 431.9 MB, free: 7.797 MB / 318.1 MB (rm -f MEV_MEV.Test.TestDutyCycleGenerator.pipe ; mkfifo MEV_MEV.Test.TestDutyCycleGenerator.pipe ; head -c 1048576 < MEV_MEV.Test.TestDutyCycleGenerator.pipe >> ../files/MEV_MEV.Test.TestDutyCycleGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestDutyCycleGenerator_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestDutyCycleGenerator.fmu > MEV_MEV.Test.TestDutyCycleGenerator.pipe 2>&1)