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.001267/0.001267, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.514/1.514, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01447/0.01447, allocations: 1.933 MB / 271.7 MB, free: 3.359 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.001575/0.001575, allocations: 71.91 kB / 329.9 MB, free: 32.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08464, allocations: 47.14 MB / 377.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.002792/0.08747, allocations: 1.383 MB / 378.5 MB, free: 140 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002649/0.08775, allocations: 95.72 kB / 378.6 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.446e-05/0.08781, allocations: 4 kB / 378.6 MB, free: 40 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.603e-05/0.08785, allocations: 3.938 kB / 378.6 MB, free: 36 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.447e-05/0.08791, allocations: 0 / 378.6 MB, free: 36 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.08808, allocations: 11.92 kB / 378.6 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.913e-05/0.08816, allocations: 23.94 kB / 378.6 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.08828, allocations: 7.984 kB / 378.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.08832, allocations: 15.92 kB / 378.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.162e-05/0.08837, allocations: 15.92 kB / 378.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.0884, allocations: 4 kB / 378.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.32e-05/0.08842, allocations: 4 kB / 378.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.911e-05/0.08844, allocations: 0 / 378.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.773e-05/0.08849, allocations: 15.92 kB / 378.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.981e-05/0.08858, allocations: 23.92 kB / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.08859, allocations: 0 / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.0886, allocations: 7.938 kB / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.08862, allocations: 0 / 378.7 MB, free: 15.91 MB / 286.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.0004831/0.0891, allocations: 339.7 kB / 379 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.08916, allocations: 19.89 kB / 379 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.957e-05/0.08919, allocations: 30.75 kB / 379.1 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.08922, allocations: 0.9375 kB / 379.1 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.08934, allocations: 176.2 kB / 379.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.08937, allocations: 384 / 379.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.08939, allocations: 4.375 kB / 379.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/0.08954, allocations: 46.23 kB / 379.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.08956, allocations: 7.938 kB / 379.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.08958, allocations: 0 / 379.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.08959, allocations: 4 kB / 379.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.08973, allocations: 27.97 kB / 379.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003407/0.09008, allocations: 257 kB / 379.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.09027, allocations: 54.42 kB / 379.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.701e-05/0.09035, allocations: 29 kB / 379.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.09038, allocations: 0 / 379.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.09058, allocations: 67.38 kB / 379.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.09059, allocations: 0 / 379.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000301/0.0909, allocations: 97.67 kB / 379.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.09095, allocations: 59.41 kB / 379.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.078e-05/0.09101, allocations: 93.86 kB / 380 MB, free: 14.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.09104, allocations: 29.7 kB / 380 MB, free: 14.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.09109, allocations: 92.02 kB / 380.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.09112, allocations: 11.89 kB / 380.1 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.09115, allocations: 13.72 kB / 380.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.09127, allocations: 314.8 kB / 380.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.996e-05/0.09135, allocations: 19.98 kB / 380.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.841e-05/0.09143, allocations: 30.56 kB / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.09156, allocations: 62.41 kB / 380.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.09157, allocations: 4 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001716/0.09175, allocations: 77.59 kB / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.09177, allocations: 4 kB / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.09178, allocations: 0 / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.0918, allocations: 0 / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.298e-05/0.09188, allocations: 8 kB / 380.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.09189, allocations: 3.984 kB / 380.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.826e-05/0.09195, allocations: 11.91 kB / 380.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.09197, allocations: 8.062 kB / 380.7 MB, free: 13.69 MB / 286.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 7.777e-05/0.09205, allocations: 121.7 kB / 380.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.09206, allocations: 0 / 380.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.0921, allocations: 11.48 kB / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.09211, allocations: 4 kB / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.09212, allocations: 0 / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.09212, allocations: 0 / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.09227, allocations: 157.6 kB / 380.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.09228, allocations: 0 / 380.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.273e-05/0.09233, allocations: 15.98 kB / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.09234, allocations: 0 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.09235, allocations: 0 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.09235, allocations: 384 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.09236, allocations: 0 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.09256, allocations: 109 kB / 381.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-05/0.0926, allocations: 85.02 kB / 381.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.09262, allocations: 4 kB / 381.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.235e-05/0.09267, allocations: 7.984 kB / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.09271, allocations: 4 kB / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.09272, allocations: 0 / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.451e-05/0.09277, allocations: 87.27 kB / 381.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09278, allocations: 3.938 kB / 381.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001835/0.09296, allocations: 4 kB / 381.3 MB, free: 12.98 MB / 286.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.0004222/0.09339, allocations: 0.628 MB / 381.9 MB, free: 12.33 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001826/0.09359, allocations: 47.91 kB / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.0936, allocations: 0 / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.671e-05/0.0937, allocations: 16.11 kB / 381.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.09385, allocations: 12 kB / 382 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003808/0.09424, allocations: 143.4 kB / 382.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.0945, allocations: 0.6844 MB / 382.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.34e-05/0.09453, allocations: 0 / 382.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.09458, allocations: 19.44 kB / 382.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09458, allocations: 0 / 382.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.1126, allocations: 1.254 MB / 384.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.873/7.986, allocations: 8.422 kB / 384.1 MB, free: 10.03 MB / 286.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)