Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 211.1 MB, free: 8.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 12 kB / 264.1 MB, free: 3.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3604, allocations: 44.5 MB / 308.6 MB, free: 12.81 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.5316, allocations: 73 MB / 381.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.532, allocations: 67.97 kB / 381.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01329/0.5453, allocations: 2.793 MB / 384.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5453, allocations: 0 / 384.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.5453, allocations: 4 kB / 384.4 MB, free: 0.832 MB / 314.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.001174/0.5465, allocations: 0.4887 MB / 384.9 MB, free: 300 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.5466, allocations: 12.03 kB / 384.9 MB, free: 288 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.941e-05/0.5467, allocations: 46.55 kB / 385 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.886e-05/0.5468, allocations: 23.72 kB / 385 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.5472, allocations: 246.5 kB / 385.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.5473, allocations: 12 kB / 385.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.5473, allocations: 16 kB / 385.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.5479, allocations: 216.9 kB / 385.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.548, allocations: 0 / 385.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.548, allocations: 4 kB / 385.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.548, allocations: 8 kB / 385.5 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005634/0.5486, allocations: 143.8 kB / 385.6 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.5504, allocations: 0.809 MB / 386.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.5515, allocations: 202.7 kB / 386.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.5516, allocations: 4 kB / 386.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004375/0.552, allocations: 159.2 kB / 386.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 3.106e-06/0.552, allocations: 0 / 386.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001003/0.553, allocations: 253.3 kB / 387 MB, free: 14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.5531, allocations: 81.11 kB / 387.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.5534, allocations: 199.2 kB / 387.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.5535, allocations: 29.7 kB / 387.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.5536, allocations: 136.9 kB / 387.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.5537, allocations: 43.53 kB / 387.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.5537, allocations: 4 kB / 387.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5539, allocations: 326.8 kB / 387.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.5542, allocations: 75.89 kB / 387.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/0.5546, allocations: 140.5 kB / 388 MB, free: 12.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.5549, allocations: 84.09 kB / 388.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.5549, allocations: 0 / 388.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008323/0.5558, allocations: 253.2 kB / 388.4 MB, free: 12.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.5558, allocations: 8 kB / 388.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5558, allocations: 0 / 388.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.5559, allocations: 8.188 kB / 388.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003404/0.5562, allocations: 51.91 kB / 388.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.5563, allocations: 4 kB / 388.4 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.5566, allocations: 39.72 kB / 388.5 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.5566, allocations: 11.95 kB / 388.5 MB, free: 12.46 MB / 330.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.00024/0.5569, allocations: 152 kB / 388.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.557, allocations: 15.81 kB / 388.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004166/0.5574, allocations: 131 kB / 388.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5574, allocations: 4 kB / 388.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5574, allocations: 0 / 388.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5574, allocations: 0 / 388.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.5585, allocations: 490.2 kB / 389.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.5585, allocations: 0 / 389.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.5587, allocations: 19.92 kB / 389.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.5588, allocations: 7.984 kB / 389.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.5588, allocations: 0 / 389.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/0.5588, allocations: 4 kB / 389.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5588, allocations: 0 / 389.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007312/0.5596, allocations: 312 kB / 389.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.22e-05/0.5597, allocations: 88.92 kB / 389.7 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.5597, allocations: 4.172 kB / 389.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.56, allocations: 27.98 kB / 389.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.5602, allocations: 31.8 kB / 389.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.5602, allocations: 7.984 kB / 389.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001966/0.5604, allocations: 147.4 kB / 389.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5604, allocations: 0 / 389.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004495/0.5609, allocations: 47.84 kB / 389.9 MB, free: 10.89 MB / 330.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.001183/0.5621, allocations: 0.9202 MB / 390.9 MB, free: 9.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006819/0.5628, allocations: 175.8 kB / 391 MB, free: 9.758 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5628, allocations: 0 / 391 MB, free: 9.758 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.5631, allocations: 84.39 kB / 391.1 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.5635, allocations: 27.94 kB / 391.1 MB, free: 9.648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.5671, allocations: 2.528 MB / 393.7 MB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.5676, allocations: 0.7364 MB / 394.4 MB, free: 6.254 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002325/0.5679, allocations: 37.5 kB / 394.4 MB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.5681, allocations: 67.41 kB / 394.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5681, allocations: 0 / 394.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07178/0.6399, allocations: 3.581 MB / 398.1 MB, free: 2.613 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002967/0.6402, allocations: 169.4 kB / 398.3 MB, free: 2.371 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.836/3.476, allocations: 0 / 398.3 MB, free: 2.371 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat