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.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.1 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003418, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.08172, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3509/0.4327, allocations: 66.31 MB / 338.4 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.4329, allocations: 63.97 kB / 338.5 MB, free: 7.035 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009716/0.4427, allocations: 2.155 MB / 340.6 MB, free: 5.105 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4427, allocations: 0 / 340.6 MB, free: 5.105 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.4427, allocations: 4 kB / 340.6 MB, free: 5.102 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005485/0.4433, allocations: 489 kB / 341.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4434, allocations: 8.031 kB / 341.1 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.4434, allocations: 37.56 kB / 341.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.4435, allocations: 11.91 kB / 341.2 MB, free: 4.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.4436, allocations: 183.5 kB / 341.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.4437, allocations: 7.688 kB / 341.4 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.4437, allocations: 11.95 kB / 341.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.444, allocations: 89.84 kB / 341.4 MB, free: 4.191 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.444, allocations: 4 kB / 341.5 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.444, allocations: 7.938 kB / 341.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.444, allocations: 0 / 341.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.4442, allocations: 56.47 kB / 341.5 MB, free: 4.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.4448, allocations: 339.3 kB / 341.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.445, allocations: 76 kB / 341.9 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.445, allocations: 0 / 341.9 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.4453, allocations: 164.2 kB / 342.1 MB, free: 3.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 3.587e-06/0.4453, allocations: 3.984 kB / 342.1 MB, free: 3.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006809/0.446, allocations: 421.4 kB / 342.5 MB, free: 3.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.4461, allocations: 165.2 kB / 342.7 MB, free: 2.945 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.4463, allocations: 127.6 kB / 342.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.4463, allocations: 29.7 kB / 342.8 MB, free: 2.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.4464, allocations: 177.4 kB / 343 MB, free: 2.617 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.4465, allocations: 23.55 kB / 343 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.4465, allocations: 3.938 kB / 343 MB, free: 2.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4466, allocations: 318.8 kB / 343.3 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4467, allocations: 37.67 kB / 343.4 MB, free: 2.254 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-05/0.4469, allocations: 38.66 kB / 343.4 MB, free: 2.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.447, allocations: 146.3 kB / 343.5 MB, free: 2.074 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.447, allocations: 4 kB / 343.5 MB, free: 2.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004398/0.4475, allocations: 256.4 kB / 343.8 MB, free: 1.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-05/0.4476, allocations: 119.5 kB / 343.9 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4476, allocations: 0 / 343.9 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/0.4477, allocations: 7.938 kB / 343.9 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.518e-05/0.4477, allocations: 3.938 kB / 343.9 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.4477, allocations: 3.984 kB / 343.9 MB, free: 1.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/0.4478, allocations: 14.53 kB / 343.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.4479, allocations: 4 kB / 343.9 MB, free: 1.652 MB / 266.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.0001973/0.4481, allocations: 200 kB / 344.1 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.4481, allocations: 8 kB / 344.1 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.4482, allocations: 15.3 kB / 344.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4482, allocations: 0 / 344.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4482, allocations: 0 / 344.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4482, allocations: 0 / 344.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.4484, allocations: 214.4 kB / 344.4 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.4485, allocations: 4 kB / 344.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.326e-06/0.4485, allocations: 4 kB / 344.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.4485, allocations: 0 / 344.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.4485, allocations: 4 kB / 344.4 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.4485, allocations: 3.938 kB / 344.4 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4485, allocations: 0 / 344.4 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005127/0.4491, allocations: 281.3 kB / 344.7 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.4491, allocations: 84.95 kB / 344.7 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.4492, allocations: 11.86 kB / 344.8 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.4493, allocations: 16 kB / 344.8 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.4494, allocations: 3.984 kB / 344.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.4494, allocations: 11.12 kB / 344.8 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.808e-05/0.4495, allocations: 106.6 kB / 344.9 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4495, allocations: 0 / 344.9 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003861/0.4499, allocations: 48 kB / 344.9 MB, free: 0.625 MB / 266.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.001006/0.4509, allocations: 0.8522 MB / 345.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000449/0.4514, allocations: 329 kB / 346.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.4514, allocations: 0 / 346.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002564/0.4517, allocations: 198.1 kB / 346.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/0.4519, allocations: 11.3 kB / 346.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.4534, allocations: 0.7536 MB / 347.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.4538, allocations: 0.7043 MB / 347.8 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.924e-05/0.4538, allocations: 29.44 kB / 347.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4538, allocations: 0 / 347.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.316/2.77, allocations: 2.025 MB / 349.8 MB, free: 11.8 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat