Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09346, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5107, allocations: 72.99 MB / 381.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.511, allocations: 70.38 kB / 381.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01196/0.523, allocations: 2.783 MB / 384.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.523, allocations: 0 / 384.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.5231, allocations: 5.031 kB / 384.4 MB, free: 14.06 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.0009484/0.524, allocations: 0.4897 MB / 384.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.5241, allocations: 9.062 kB / 384.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.715e-05/0.5242, allocations: 48.2 kB / 384.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.5242, allocations: 23.22 kB / 384.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.5246, allocations: 246.8 kB / 385.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.5246, allocations: 11.66 kB / 385.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.184e-05/0.5246, allocations: 15.88 kB / 385.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000516/0.5252, allocations: 210.7 kB / 385.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.5252, allocations: 1.375 kB / 385.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.423e-05/0.5253, allocations: 11.3 kB / 385.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.5253, allocations: 6.875 kB / 385.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.5258, allocations: 142.6 kB / 385.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.5272, allocations: 0.8018 MB / 386.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009753/0.5282, allocations: 209.8 kB / 386.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.5283, allocations: 7.672 kB / 386.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.5287, allocations: 146.6 kB / 386.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.144e-06/0.5287, allocations: 0 / 386.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009202/0.5296, allocations: 255.4 kB / 387 MB, free: 12.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.5297, allocations: 83.28 kB / 387.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.5299, allocations: 201.4 kB / 387.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.53, allocations: 32.23 kB / 387.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.594e-05/0.53, allocations: 193.1 kB / 387.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.5301, allocations: 42.33 kB / 387.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.5301, allocations: 4.938 kB / 387.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.143e-05/0.5302, allocations: 324 kB / 387.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.5305, allocations: 64.62 kB / 387.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.5308, allocations: 141.2 kB / 388 MB, free: 11.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.5311, allocations: 84.17 kB / 388.1 MB, free: 11.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5311, allocations: 9.562 kB / 388.1 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006807/0.5318, allocations: 234.3 kB / 388.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.5318, allocations: 10.56 kB / 388.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.5318, allocations: 6.625 kB / 388.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.5318, allocations: 7.859 kB / 388.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002975/0.5322, allocations: 43.31 kB / 388.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.5322, allocations: 3.656 kB / 388.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.5325, allocations: 44.41 kB / 388.5 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/0.5325, allocations: 12.08 kB / 388.5 MB, free: 11.67 MB / 314.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.0001548/0.5327, allocations: 144.8 kB / 388.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.5327, allocations: 18.19 kB / 388.7 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.5331, allocations: 135.1 kB / 388.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.5331, allocations: 1.312 kB / 388.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5331, allocations: 5.188 kB / 388.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5331, allocations: 1.281 kB / 388.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007835/0.5339, allocations: 483.4 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.534, allocations: 1.219 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.5342, allocations: 22.95 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5342, allocations: 1.312 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.5342, allocations: 4.922 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.5342, allocations: 1.312 kB / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5342, allocations: 0 / 389.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006029/0.5348, allocations: 309.5 kB / 389.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.5349, allocations: 100.5 kB / 389.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.535, allocations: 2.656 kB / 389.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.5352, allocations: 27.94 kB / 389.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-05/0.5354, allocations: 22.16 kB / 389.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.5354, allocations: 7.578 kB / 389.8 MB, free: 10.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.5356, allocations: 143.5 kB / 389.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5356, allocations: 0 / 389.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004201/0.536, allocations: 50.62 kB / 389.9 MB, free: 10.81 MB / 314.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.0008739/0.5369, allocations: 0.9221 MB / 390.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000618/0.5375, allocations: 181.2 kB / 391 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5375, allocations: 4.453 kB / 391 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002767/0.5378, allocations: 85.3 kB / 391.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.5382, allocations: 22.95 kB / 391.2 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.5408, allocations: 2.556 MB / 393.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.541, allocations: 0.7384 MB / 394.4 MB, free: 7.348 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.5412, allocations: 64.34 kB / 394.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5412, allocations: 0 / 394.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.558/3.099, allocations: 3.162 MB / 397.7 MB, free: 7.09 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat