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.004452/0.004452, allocations: 102.2 kB / 15.73 MB, free: 5.516 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.001043/0.001043, allocations: 203.2 kB / 16.68 MB, free: 5.445 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.292/1.292, allocations: 205.1 MB / 222.6 MB, free: 4.332 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008279/0.008279, allocations: 1.931 MB / 271.8 MB, free: 3.062 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.00138/0.001381, allocations: 67.89 kB / 377.7 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08428/0.08567, allocations: 47.13 MB / 424.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.002168/0.08788, allocations: 1.385 MB / 426.3 MB, free: 284 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000238/0.08813, allocations: 107.7 kB / 426.4 MB, free: 176 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.08817, allocations: 0 / 426.4 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.248e-05/0.0882, allocations: 0 / 426.4 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.217e-05/0.08826, allocations: 3.938 kB / 426.4 MB, free: 172 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001419/0.0884, allocations: 15.92 kB / 426.4 MB, free: 156 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.256e-05/0.08848, allocations: 23.92 kB / 426.4 MB, free: 132 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.08e-05/0.08856, allocations: 8 kB / 426.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.686e-05/0.0886, allocations: 7.938 kB / 426.4 MB, free: 116 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.132e-05/0.08865, allocations: 15.92 kB / 426.4 MB, free: 100 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.08867, allocations: 0 / 426.4 MB, free: 100 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.294e-06/0.08869, allocations: 4 kB / 426.4 MB, free: 96 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.08871, allocations: 7.984 kB / 426.4 MB, free: 88 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.355e-05/0.08875, allocations: 15.92 kB / 426.5 MB, free: 72 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.079e-05/0.08882, allocations: 23.86 kB / 426.5 MB, free: 48 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08883, allocations: 0 / 426.5 MB, free: 48 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08884, allocations: 4 kB / 426.5 MB, free: 44 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.08885, allocations: 0 / 426.5 MB, free: 44 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.1596/0.2485, allocations: 334.1 kB / 426.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.2485, allocations: 13.48 kB / 426.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.2486, allocations: 32.7 kB / 426.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.2486, allocations: 5.531 kB / 426.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.309e-05/0.2487, allocations: 167.9 kB / 427 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.2488, allocations: 2.469 kB / 427 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.2488, allocations: 7.312 kB / 427 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.249, allocations: 51.44 kB / 427.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.249, allocations: 3.938 kB / 427.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.249, allocations: 1.344 kB / 427.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.249, allocations: 0 / 427.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.2492, allocations: 31.91 kB / 427.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003435/0.2496, allocations: 250.5 kB / 427.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.2498, allocations: 62.7 kB / 427.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.637e-05/0.2499, allocations: 22.23 kB / 427.5 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.2499, allocations: 1.953 kB / 427.5 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.2502, allocations: 73.11 kB / 427.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.2502, allocations: 0 / 427.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003527/0.2506, allocations: 88.75 kB / 427.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.2506, allocations: 54.77 kB / 427.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.567e-05/0.2507, allocations: 103.2 kB / 427.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.2507, allocations: 31.23 kB / 427.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.383e-05/0.2507, allocations: 88.97 kB / 427.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.2507, allocations: 6.594 kB / 427.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.2508, allocations: 17.66 kB / 427.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.2508, allocations: 317.5 kB / 428.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.523e-05/0.2509, allocations: 13.44 kB / 428.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.215e-05/0.251, allocations: 39.84 kB / 428.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.2512, allocations: 55.92 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2512, allocations: 0 / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002012/0.2514, allocations: 81.91 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2514, allocations: 5.812 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.2514, allocations: 6.438 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2515, allocations: 2.562 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.2516, allocations: 8.781 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2516, allocations: 2.281 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.038e-05/0.2516, allocations: 5.516 kB / 428.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.2516, allocations: 6.188 kB / 428.4 MB, free: 10.26 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 5.879e-05/0.2517, allocations: 117.1 kB / 428.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.2517, allocations: 6.219 kB / 428.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.2518, allocations: 11.09 kB / 428.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2518, allocations: 3.609 kB / 428.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2518, allocations: 0 / 428.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2518, allocations: 1.875 kB / 428.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.2519, allocations: 169 kB / 428.7 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2519, allocations: 0 / 428.7 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.252, allocations: 8.156 kB / 428.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.252, allocations: 0 / 428.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.252, allocations: 5.609 kB / 428.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.252, allocations: 5.188 kB / 428.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.252, allocations: 0 / 428.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.2523, allocations: 103.4 kB / 428.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.862e-05/0.2523, allocations: 78.2 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.2523, allocations: 3.703 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.489e-05/0.2524, allocations: 4.141 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2525, allocations: 14.56 kB / 429 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.2525, allocations: 1.438 kB / 429 MB, free: 9.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.954e-05/0.2525, allocations: 83.17 kB / 429 MB, free: 9.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2525, allocations: 0 / 429 MB, free: 9.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.2528, allocations: 9.641 kB / 429.1 MB, free: 9.684 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.0003904/0.2532, allocations: 0.6293 MB / 429.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002277/0.2535, allocations: 45.11 kB / 429.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2535, allocations: 0 / 429.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.284e-05/0.2536, allocations: 22.27 kB / 429.8 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.2538, allocations: 1.719 kB / 429.8 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/0.2542, allocations: 143.7 kB / 429.9 MB, free: 8.938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.8e-05/0.2544, allocations: 0.6896 MB / 430.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.875e-05/0.2544, allocations: 3.094 kB / 430.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.2544, allocations: 9.703 kB / 430.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2545, allocations: 1.219 kB / 430.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.2704, allocations: 1.28 MB / 431.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.571, allocations: 13.28 kB / 431.9 MB, free: 7.773 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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestDutyCycleGenerator_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 MEV_MEV_Test_TestDutyCycleGenerator.fmu > MEV_MEV.Test.TestDutyCycleGenerator.pipe 2>&1)