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.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003818/0.0003819, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09159, allocations: 44.5 MB / 308.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3965/0.4882, allocations: 71.63 MB / 380.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.4885, allocations: 66.25 kB / 380.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009763/0.4983, allocations: 2.141 MB / 382.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4984, allocations: 0 / 382.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.4984, allocations: 1.125 kB / 382.4 MB, free: 14.09 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004711/0.4989, allocations: 493.3 kB / 382.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4989, allocations: 13.19 kB / 382.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.848e-05/0.499, allocations: 35.89 kB / 382.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.499, allocations: 15.91 kB / 382.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.4991, allocations: 180.7 kB / 383.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.4992, allocations: 8.094 kB / 383.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/0.4992, allocations: 11.75 kB / 383.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.4995, allocations: 91.34 kB / 383.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4995, allocations: 3.984 kB / 383.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.4995, allocations: 5.25 kB / 383.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4995, allocations: 2.375 kB / 383.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.4997, allocations: 53.25 kB / 383.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.5003, allocations: 343.5 kB / 383.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.5005, allocations: 73.38 kB / 383.7 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.5005, allocations: 4 kB / 383.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.5007, allocations: 161.3 kB / 383.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.545e-06/0.5008, allocations: 0 / 383.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006417/0.5014, allocations: 421.6 kB / 384.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.5015, allocations: 165.1 kB / 384.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.5016, allocations: 126.5 kB / 384.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.5017, allocations: 31.86 kB / 384.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.163e-05/0.5017, allocations: 165.5 kB / 384.7 MB, free: 12.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.5018, allocations: 28.05 kB / 384.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.5018, allocations: 1.25 kB / 384.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.5019, allocations: 316.9 kB / 385.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.502, allocations: 39.06 kB / 385.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.783e-05/0.5021, allocations: 35.77 kB / 385.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.5022, allocations: 142.5 kB / 385.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5023, allocations: 3.938 kB / 385.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004133/0.5027, allocations: 267.7 kB / 385.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/0.5028, allocations: 113.8 kB / 385.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5028, allocations: 5.547 kB / 385.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.5028, allocations: 1.281 kB / 385.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.468e-05/0.5029, allocations: 5 kB / 385.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.5029, allocations: 5.453 kB / 385.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.503, allocations: 6.328 kB / 385.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.503, allocations: 5.531 kB / 385.7 MB, free: 11.36 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001655/0.5032, allocations: 202.4 kB / 385.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.5033, allocations: 14.94 kB / 385.9 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.5033, allocations: 6.844 kB / 385.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.5033, allocations: 1.641 kB / 385.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.5033, allocations: 3.219 kB / 385.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.5034, allocations: 7.891 kB / 385.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.5035, allocations: 206.5 kB / 386.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5036, allocations: 2.156 kB / 386.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.416e-06/0.5036, allocations: 0 / 386.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.5036, allocations: 0 / 386.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.5036, allocations: 9.516 kB / 386.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5036, allocations: 4 kB / 386.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.5036, allocations: 0 / 386.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004761/0.5041, allocations: 277.6 kB / 386.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.28e-05/0.5042, allocations: 84.5 kB / 386.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.769e-05/0.5042, allocations: 8.875 kB / 386.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.5044, allocations: 12.69 kB / 386.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.5045, allocations: 6.656 kB / 386.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.5045, allocations: 12.22 kB / 386.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.806e-05/0.5046, allocations: 100 kB / 386.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.633e-06/0.5046, allocations: 0 / 386.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004431/0.5051, allocations: 53.73 kB / 386.7 MB, free: 10.64 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0009495/0.506, allocations: 0.862 MB / 387.5 MB, free: 9.977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.5065, allocations: 335.7 kB / 387.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5065, allocations: 0 / 387.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.5067, allocations: 190.5 kB / 388 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001599/0.5069, allocations: 12.03 kB / 388 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.5085, allocations: 0.7628 MB / 388.8 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.5087, allocations: 0.7 MB / 389.5 MB, free: 8.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.5088, allocations: 26.56 kB / 389.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5088, allocations: 1.375 kB / 389.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.459/2.968, allocations: 2.018 MB / 391.6 MB, free: 8.285 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat