Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.594/1.594, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003512, allocations: 8 kB / 233.3 MB, free: 2.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0793/0.07969, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4098, allocations: 67.69 MB / 339.8 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.4101, allocations: 68.47 kB / 339.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0122/0.4223, allocations: 2.793 MB / 342.7 MB, free: 3.395 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4223, allocations: 3.938 kB / 342.7 MB, free: 3.391 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.4224, allocations: 4 kB / 342.7 MB, free: 3.387 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.001022/0.4234, allocations: 0.4982 MB / 343.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.4235, allocations: 12.03 kB / 343.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.115e-05/0.4235, allocations: 49.23 kB / 343.2 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.4236, allocations: 27.7 kB / 343.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.424, allocations: 236 kB / 343.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.424, allocations: 17.23 kB / 343.5 MB, free: 2.488 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.4241, allocations: 22.7 kB / 343.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.4246, allocations: 203.9 kB / 343.7 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.4246, allocations: 0 / 343.7 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.4247, allocations: 11.48 kB / 343.7 MB, free: 2.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.4247, allocations: 11.94 kB / 343.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.4253, allocations: 142.5 kB / 343.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.4268, allocations: 0.7974 MB / 344.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000991/0.4278, allocations: 212.5 kB / 344.9 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.4279, allocations: 4 kB / 344.9 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.4283, allocations: 142.3 kB / 345 MB, free: 1.066 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.963e-06/0.4283, allocations: 4 kB / 345 MB, free: 1.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009172/0.4292, allocations: 255 kB / 345.3 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.4293, allocations: 81.11 kB / 345.4 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.4295, allocations: 202.1 kB / 345.6 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.4296, allocations: 33.45 kB / 345.6 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.4297, allocations: 202.7 kB / 345.8 MB, free: 364 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.4298, allocations: 32.88 kB / 345.8 MB, free: 336 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.4298, allocations: 7.062 kB / 345.8 MB, free: 332 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4299, allocations: 323.9 kB / 346.1 MB, free: 4 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.4302, allocations: 68.14 kB / 346.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/0.4306, allocations: 143.1 kB / 346.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.4309, allocations: 81.95 kB / 346.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4309, allocations: 384 / 346.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007236/0.4316, allocations: 252.5 kB / 346.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4317, allocations: 8 kB / 346.7 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.4317, allocations: 0 / 346.7 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4317, allocations: 7.938 kB / 346.7 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002957/0.432, allocations: 47.66 kB / 346.7 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.432, allocations: 4.312 kB / 346.7 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.4323, allocations: 32.05 kB / 346.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.4324, allocations: 19.11 kB / 346.8 MB, free: 15.43 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.0001774/0.4326, allocations: 149.5 kB / 346.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.4326, allocations: 19.8 kB / 347 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003557/0.433, allocations: 129.4 kB / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.433, allocations: 4 kB / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.433, allocations: 4 kB / 347.1 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.433, allocations: 0 / 347.1 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008401/0.4339, allocations: 481.5 kB / 347.6 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4339, allocations: 0 / 347.6 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.4341, allocations: 19.98 kB / 347.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.4341, allocations: 3.984 kB / 347.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.4342, allocations: 11.11 kB / 347.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.4342, allocations: 4 kB / 347.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4342, allocations: 0 / 347.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006672/0.4349, allocations: 312.5 kB / 347.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.435, allocations: 107.8 kB / 348 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.4351, allocations: 3.984 kB / 348 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.4353, allocations: 22.3 kB / 348 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.4355, allocations: 22.72 kB / 348.1 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.4355, allocations: 7.984 kB / 348.1 MB, free: 14.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001717/0.4357, allocations: 151.8 kB / 348.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4357, allocations: 0 / 348.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004123/0.4361, allocations: 45.2 kB / 348.3 MB, free: 14.02 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.001037/0.4372, allocations: 0.9306 MB / 349.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006273/0.4378, allocations: 177.3 kB / 349.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4378, allocations: 0 / 349.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.4381, allocations: 85.2 kB / 349.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.4385, allocations: 31.44 kB / 349.5 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.4416, allocations: 2.553 MB / 352 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.442, allocations: 0.7403 MB / 352.8 MB, free: 9.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.4422, allocations: 66.28 kB / 352.8 MB, free: 9.586 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4422, allocations: 0 / 352.8 MB, free: 9.586 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.432/2.874, allocations: 3.154 MB / 356 MB, free: 6.461 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat