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.007503/0.007503, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001998/0.001998, allocations: 197 kB / 16.67 MB, free: 5.973 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.364/1.364, allocations: 205.1 MB / 222.6 MB, free: 4.375 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008863/0.008863, allocations: 1.92 MB / 271.8 MB, free: 3.117 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.002036/0.002036, allocations: 67.91 kB / 377.7 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08565, allocations: 47.12 MB / 424.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.00251/0.08819, allocations: 1.393 MB / 426.3 MB, free: 296 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002591/0.08847, allocations: 99.67 kB / 426.4 MB, free: 196 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.08852, allocations: 4 kB / 426.4 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.361e-05/0.08855, allocations: 0 / 426.4 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.498e-05/0.0886, allocations: 3.938 kB / 426.4 MB, free: 188 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.08874, allocations: 15.92 kB / 426.4 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.317e-05/0.08881, allocations: 27.92 kB / 426.4 MB, free: 144 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.162e-05/0.0889, allocations: 4 kB / 426.4 MB, free: 140 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.22e-05/0.08894, allocations: 15.92 kB / 426.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.946e-05/0.089, allocations: 11.92 kB / 426.4 MB, free: 112 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.08901, allocations: 0 / 426.4 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.283e-05/0.08903, allocations: 4 kB / 426.4 MB, free: 108 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.928e-05/0.08906, allocations: 7.984 kB / 426.5 MB, free: 100 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.08909, allocations: 11.94 kB / 426.5 MB, free: 88 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.166e-05/0.08917, allocations: 23.84 kB / 426.5 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.08918, allocations: 0 / 426.5 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.08919, allocations: 8 kB / 426.5 MB, free: 56 kB / 318.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.0892, allocations: 0 / 426.5 MB, free: 56 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.143/0.2323, allocations: 333.6 kB / 426.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2323, allocations: 13.27 kB / 426.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.756e-05/0.2323, allocations: 32.55 kB / 426.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.2324, allocations: 2.672 kB / 426.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.86e-05/0.2324, allocations: 167.8 kB / 427 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.2325, allocations: 3.406 kB / 427 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.2325, allocations: 5.594 kB / 427 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.2326, allocations: 52.25 kB / 427.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.2326, allocations: 4.812 kB / 427.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.2326, allocations: 0 / 427.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2327, allocations: 1.844 kB / 427.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.2328, allocations: 28.98 kB / 427.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/0.233, allocations: 254.6 kB / 427.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.2332, allocations: 64.66 kB / 427.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.056e-05/0.2333, allocations: 20.25 kB / 427.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.2333, allocations: 0 / 427.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.2335, allocations: 69.53 kB / 427.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.442e-06/0.2335, allocations: 0 / 427.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002813/0.2338, allocations: 96.94 kB / 427.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.2338, allocations: 55.58 kB / 427.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.185e-05/0.2339, allocations: 103.8 kB / 427.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.2339, allocations: 27.14 kB / 427.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.923e-05/0.2339, allocations: 85.41 kB / 427.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.2339, allocations: 9.797 kB / 427.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.234, allocations: 17.91 kB / 427.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.852e-05/0.234, allocations: 314 kB / 428.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.012e-05/0.2341, allocations: 14.62 kB / 428.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.115e-05/0.2342, allocations: 38.5 kB / 428.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.2343, allocations: 59.58 kB / 428.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2343, allocations: 0 / 428.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000151/0.2344, allocations: 80.92 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2345, allocations: 7.562 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.2345, allocations: 0 / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2345, allocations: 5.641 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.834e-05/0.2346, allocations: 16.09 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.2346, allocations: 0.75 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.576e-05/0.2346, allocations: 5.656 kB / 428.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.2346, allocations: 1.312 kB / 428.4 MB, free: 10.24 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.768e-05/0.2347, allocations: 121.8 kB / 428.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.2347, allocations: 1.656 kB / 428.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.2347, allocations: 16.41 kB / 428.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2347, allocations: 1.594 kB / 428.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2347, allocations: 0.6094 kB / 428.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2347, allocations: 0 / 428.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.424e-05/0.2348, allocations: 166 kB / 428.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2348, allocations: 0 / 428.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.2349, allocations: 7.844 kB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2349, allocations: 0.6562 kB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.2349, allocations: 1.375 kB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2349, allocations: 0 / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2349, allocations: 2.125 kB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.2351, allocations: 106.9 kB / 428.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.49e-05/0.2351, allocations: 78.67 kB / 428.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.2351, allocations: 0.75 kB / 428.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.93e-05/0.2352, allocations: 9.828 kB / 428.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.2352, allocations: 3.953 kB / 429 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.2352, allocations: 3.812 kB / 429 MB, free: 9.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.069e-05/0.2353, allocations: 88.67 kB / 429 MB, free: 9.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2353, allocations: 0 / 429 MB, free: 9.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001797/0.2355, allocations: 9.312 kB / 429.1 MB, free: 9.668 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.0002927/0.2358, allocations: 0.634 MB / 429.7 MB, free: 9.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.2359, allocations: 45.22 kB / 429.7 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2359, allocations: 0 / 429.7 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.025e-05/0.236, allocations: 21.33 kB / 429.8 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.2362, allocations: 4.781 kB / 429.8 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003088/0.2365, allocations: 143.7 kB / 429.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.541e-05/0.2366, allocations: 0.6876 MB / 430.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.182e-05/0.2366, allocations: 2.359 kB / 430.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.2366, allocations: 13.11 kB / 430.6 MB, free: 8.207 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2366, allocations: 0 / 430.6 MB, free: 8.207 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02048/0.2571, allocations: 1.278 MB / 431.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.051, allocations: 9.172 kB / 431.9 MB, free: 7.754 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)