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-master/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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.0007264/0.0007264, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008046/0.0008045, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.149/1.149, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.006674/0.006674, allocations: 1.924 MB / 272.3 MB, free: 3.391 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.0004476/0.0004476, allocations: 19.98 kB / 331 MB, free: 33.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06238/0.06284, allocations: 48.09 MB / 379.1 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.001219/0.0641, allocations: 1.094 MB / 380.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002085/0.06432, allocations: 99.77 kB / 380.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.859e-05/0.06436, allocations: 0 / 380.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.289e-05/0.06438, allocations: 3.938 kB / 380.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.839e-05/0.06443, allocations: 7.938 kB / 380.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001312/0.06457, allocations: 7.984 kB / 380.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.377e-05/0.06463, allocations: 23.94 kB / 380.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.68e-05/0.0647, allocations: 7.969 kB / 380.3 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.514e-05/0.06473, allocations: 7.938 kB / 380.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.719e-05/0.06479, allocations: 15.92 kB / 380.4 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.0648, allocations: 0 / 380.4 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.388e-06/0.06482, allocations: 4 kB / 380.4 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.099e-05/0.06483, allocations: 0 / 380.4 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.06487, allocations: 29.7 kB / 380.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.496e-05/0.06492, allocations: 11.97 kB / 380.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.06493, allocations: 3.938 kB / 380.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.06494, allocations: 8 kB / 380.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.06495, allocations: 0 / 380.4 MB, free: 15.74 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.0003804/0.06533, allocations: 343.5 kB / 380.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.06537, allocations: 8.031 kB / 380.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.997e-05/0.06541, allocations: 30.56 kB / 380.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.042e-05/0.06543, allocations: 4 kB / 380.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.689e-05/0.06552, allocations: 163 kB / 380.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.06555, allocations: 8 kB / 381 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.06557, allocations: 3.953 kB / 381 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.0657, allocations: 53.67 kB / 381 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.06571, allocations: 3.984 kB / 381 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.251e-06/0.06572, allocations: 0 / 381 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.06573, allocations: 0 / 381 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.06584, allocations: 39.97 kB / 381.1 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002751/0.06613, allocations: 260.8 kB / 381.3 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.06628, allocations: 66.48 kB / 381.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.639e-05/0.06635, allocations: 25 kB / 381.4 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.06636, allocations: 0 / 381.4 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001492/0.06652, allocations: 75.38 kB / 381.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.06653, allocations: 0 / 381.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002507/0.06678, allocations: 101.6 kB / 381.6 MB, free: 14.4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.06683, allocations: 55.41 kB / 381.6 MB, free: 14.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.711e-05/0.06689, allocations: 109.8 kB / 381.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.0669, allocations: 25.7 kB / 381.8 MB, free: 14.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.969e-05/0.06694, allocations: 88.06 kB / 381.8 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.06696, allocations: 15.81 kB / 381.9 MB, free: 14.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/0.06697, allocations: 0 / 381.9 MB, free: 14.08 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 7.587e-05/0.06705, allocations: 314.8 kB / 382.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.869e-05/0.06712, allocations: 23.98 kB / 382.2 MB, free: 13.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.856e-05/0.06718, allocations: 42.5 kB / 382.2 MB, free: 13.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.62e-05/0.06725, allocations: 23.94 kB / 382.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.06726, allocations: 0 / 382.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001449/0.06741, allocations: 85.55 kB / 382.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.06743, allocations: 8 kB / 382.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.06743, allocations: 3.938 kB / 382.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.06745, allocations: 0 / 382.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.06752, allocations: 16.05 kB / 382.4 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.06753, allocations: 4 kB / 382.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.332e-05/0.06757, allocations: 4 kB / 382.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.06758, allocations: 4 kB / 382.4 MB, free: 13.54 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,$PRE.dutyCycleGenerator.offTime,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.518e-05/0.06765, allocations: 117.8 kB / 382.5 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.06767, allocations: 7.906 kB / 382.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.06769, allocations: 7.5 kB / 382.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.0677, allocations: 4 kB / 382.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.06771, allocations: 0 / 382.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.06771, allocations: 0 / 382.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.06783, allocations: 161.7 kB / 382.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.06785, allocations: 3.953 kB / 382.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.06789, allocations: 8.234 kB / 382.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.0679, allocations: 0 / 382.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.06791, allocations: 0 / 382.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.06792, allocations: 7.938 kB / 382.7 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.06793, allocations: 3.984 kB / 382.7 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.0681, allocations: 105.1 kB / 382.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.06814, allocations: 85.06 kB / 382.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.06816, allocations: 3.984 kB / 382.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.024e-05/0.0682, allocations: 12 kB / 382.9 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.06823, allocations: 0 / 382.9 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.06825, allocations: 3.984 kB / 382.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.899e-05/0.06828, allocations: 83.66 kB / 383 MB, free: 12.83 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06828, allocations: 0 / 383 MB, free: 12.83 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001709/0.06846, allocations: 8 kB / 383 MB, free: 12.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003606/0.06883, allocations: 0.6448 MB / 383.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.06898, allocations: 48.03 kB / 383.7 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.06899, allocations: 3.938 kB / 383.7 MB, free: 12.1 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.438e-05/0.06906, allocations: 27.92 kB / 383.7 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.06919, allocations: 4 kB / 383.7 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002998/0.0695, allocations: 150.3 kB / 383.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.06968, allocations: 0.681 MB / 384.5 MB, free: 11.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.097e-05/0.06971, allocations: 4 kB / 384.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.06974, allocations: 7.438 kB / 384.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.06975, allocations: 0 / 384.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009297/0.07905, allocations: 1.05 MB / 385.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.07925, allocations: 152.1 kB / 385.7 MB, free: 9.883 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.375/1.454, allocations: 4 kB / 385.8 MB, free: 9.879 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: