Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.688/1.688, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003659, allocations: 8 kB / 233.3 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08279/0.08319, allocations: 38.76 MB / 272.1 MB, free: 11.44 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3313/0.4146, allocations: 67.7 MB / 339.8 MB, free: 5.188 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.415, allocations: 74.27 kB / 339.9 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01371/0.4287, allocations: 2.797 MB / 342.7 MB, free: 2.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4287, allocations: 0 / 342.7 MB, free: 2.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.253e-05/0.4288, allocations: 4 kB / 342.7 MB, free: 2.742 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.00116/0.43, allocations: 0.4904 MB / 343.2 MB, free: 2.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.43, allocations: 16.03 kB / 343.2 MB, free: 2.199 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.502e-05/0.4301, allocations: 52.55 kB / 343.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.4302, allocations: 23.72 kB / 343.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.4306, allocations: 241.4 kB / 343.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.4307, allocations: 14.67 kB / 343.5 MB, free: 1.848 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.4307, allocations: 23.19 kB / 343.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.4313, allocations: 211.2 kB / 343.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.4313, allocations: 0 / 343.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.4314, allocations: 3.938 kB / 343.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.4314, allocations: 8 kB / 343.8 MB, free: 1.641 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005641/0.432, allocations: 143.1 kB / 343.9 MB, free: 1.531 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.4336, allocations: 0.8025 MB / 344.7 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.4347, allocations: 213.9 kB / 344.9 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.4348, allocations: 4 kB / 344.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.4352, allocations: 142.6 kB / 345 MB, free: 428 kB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.334e-06/0.4352, allocations: 4 kB / 345.1 MB, free: 424 kB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009714/0.4362, allocations: 255.7 kB / 345.3 MB, free: 208 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/0.4363, allocations: 84.11 kB / 345.4 MB, free: 108 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.4366, allocations: 201.7 kB / 345.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.4366, allocations: 29.67 kB / 345.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.4367, allocations: 143.5 kB / 345.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.4368, allocations: 42.34 kB / 345.8 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.4368, allocations: 4 kB / 345.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.437, allocations: 337 kB / 346.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.4373, allocations: 68.7 kB / 346.2 MB, free: 15.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.4376, allocations: 132.7 kB / 346.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.4379, allocations: 89.7 kB / 346.4 MB, free: 15.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.4379, allocations: 0 / 346.4 MB, free: 15.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007631/0.4387, allocations: 254.1 kB / 346.7 MB, free: 14.94 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4388, allocations: 4 kB / 346.7 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4388, allocations: 4 kB / 346.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.4388, allocations: 7.938 kB / 346.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003151/0.4391, allocations: 35.17 kB / 346.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.4392, allocations: 11.94 kB / 346.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000324/0.4395, allocations: 38.31 kB / 346.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.4395, allocations: 11.38 kB / 346.8 MB, free: 14.84 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 0.000206/0.4398, allocations: 147.3 kB / 346.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.822e-05/0.4398, allocations: 19.72 kB / 346.9 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003911/0.4402, allocations: 145.3 kB / 347.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.4402, allocations: 0 / 347.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4403, allocations: 0 / 347.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4403, allocations: 4 kB / 347.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009024/0.4412, allocations: 478.2 kB / 347.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4412, allocations: 0 / 347.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.4414, allocations: 23.98 kB / 347.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.4415, allocations: 4 kB / 347.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4415, allocations: 3.438 kB / 347.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.4415, allocations: 320 / 347.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4415, allocations: 4 kB / 347.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007032/0.4422, allocations: 317.6 kB / 347.9 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.4424, allocations: 104.4 kB / 348 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.4424, allocations: 3.5 kB / 348 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.4427, allocations: 27.91 kB / 348 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4429, allocations: 26.91 kB / 348 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.4429, allocations: 4 kB / 348.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.4431, allocations: 146.8 kB / 348.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4431, allocations: 0 / 348.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.4436, allocations: 51.09 kB / 348.2 MB, free: 13.42 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00111/0.4447, allocations: 0.926 MB / 349.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006887/0.4454, allocations: 174.7 kB / 349.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4455, allocations: 0 / 349.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.4458, allocations: 81.2 kB / 349.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.4462, allocations: 37.36 kB / 349.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.4497, allocations: 2.526 MB / 352 MB, free: 9.812 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.4501, allocations: 0.7363 MB / 352.7 MB, free: 9.051 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.4504, allocations: 41.52 kB / 352.8 MB, free: 9.008 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.4505, allocations: 63.97 kB / 352.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4505, allocations: 0 / 352.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02809/0.4786, allocations: 3.58 MB / 356.4 MB, free: 5.469 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003027/0.479, allocations: 165 kB / 356.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.143, allocations: 0 / 356.6 MB, free: 5.23 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat