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.BooleanNetwork1.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.BooleanNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003681, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09487, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4232/0.5181, allocations: 75.18 MB / 383.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.5185, allocations: 75.92 kB / 383.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02245/0.541, allocations: 4.996 MB / 388.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.541, allocations: 0 / 388.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.163e-05/0.5411, allocations: 15.72 kB / 388.8 MB, free: 13.91 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001233/0.5423, allocations: 0.6861 MB / 389.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.5424, allocations: 11.44 kB / 389.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.5425, allocations: 70.39 kB / 389.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.5426, allocations: 42.56 kB / 389.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.5431, allocations: 302.8 kB / 389.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-05/0.5432, allocations: 55.8 kB / 390 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.647e-05/0.5433, allocations: 43.91 kB / 390 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000824/0.5441, allocations: 400.8 kB / 390.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.5442, allocations: 3.938 kB / 390.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.715e-05/0.5442, allocations: 18.22 kB / 390.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.149e-05/0.5443, allocations: 11.94 kB / 390.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006444/0.5449, allocations: 250 kB / 390.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.5472, allocations: 1.577 MB / 392.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.5479, allocations: 267.3 kB / 392.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.132e-05/0.548, allocations: 17.7 kB / 392.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005375/0.5486, allocations: 345.9 kB / 392.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.426e-06/0.5486, allocations: 0 / 392.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.00133/0.55, allocations: 0.6686 MB / 393.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.606e-05/0.5501, allocations: 198.2 kB / 393.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.5504, allocations: 264.2 kB / 394 MB, free: 10.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.447e-05/0.5505, allocations: 39.98 kB / 394 MB, free: 10.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.5506, allocations: 242.4 kB / 394.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.5507, allocations: 86.03 kB / 394.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.5508, allocations: 10.81 kB / 394.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.13e-05/0.5509, allocations: 331.2 kB / 394.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.5512, allocations: 116.5 kB / 394.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.5516, allocations: 240 kB / 395 MB, free: 10.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.552, allocations: 223.2 kB / 395.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.552, allocations: 0 / 395.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001046/0.5531, allocations: 0.5061 MB / 395.7 MB, free: 9.891 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.173e-05/0.5531, allocations: 94.95 kB / 395.8 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5532, allocations: 3.875 kB / 395.8 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/0.5532, allocations: 11.7 kB / 395.9 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.5534, allocations: 36.05 kB / 395.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.5534, allocations: 3.875 kB / 395.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.5538, allocations: 35.55 kB / 395.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.308e-05/0.5538, allocations: 29.45 kB / 396 MB, free: 9.777 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0003584/0.5542, allocations: 258.2 kB / 396.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.472e-05/0.5543, allocations: 35.03 kB / 396.2 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/0.555, allocations: 254.8 kB / 396.5 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.555, allocations: 3.875 kB / 396.5 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.5551, allocations: 3.953 kB / 396.5 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.5551, allocations: 2.672 kB / 396.5 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001719/0.5568, allocations: 1 MB / 397.5 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.5569, allocations: 0 / 397.5 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.666e-05/0.5569, allocations: 20.11 kB / 397.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.557, allocations: 0 / 397.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.926e-05/0.557, allocations: 11.41 kB / 397.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.557, allocations: 6.203 kB / 397.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.557, allocations: 0 / 397.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009875/0.558, allocations: 0.6429 MB / 398.2 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.077e-05/0.5581, allocations: 103.7 kB / 398.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.464e-05/0.5582, allocations: 11.62 kB / 398.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.5586, allocations: 30.86 kB / 398.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.5588, allocations: 40.73 kB / 398.4 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.243e-05/0.5588, allocations: 15.16 kB / 398.4 MB, free: 8.594 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.5591, allocations: 177.1 kB / 398.6 MB, free: 8.512 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5591, allocations: 0 / 398.6 MB, free: 8.512 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007184/0.5598, allocations: 112.5 kB / 398.7 MB, free: 8.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * 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.00148/0.5613, allocations: 1.399 MB / 400.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009257/0.5623, allocations: 0.4953 MB / 400.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5623, allocations: 0 / 400.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.5628, allocations: 314.8 kB / 400.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.5634, allocations: 46.75 kB / 400.9 MB, free: 7.137 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.5681, allocations: 4.345 MB / 405.3 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.5686, allocations: 0.7992 MB / 406.1 MB, free: 19.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.5689, allocations: 125.7 kB / 406.2 MB, free: 19.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5689, allocations: 0 / 406.2 MB, free: 19.18 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.705/3.274, allocations: 5.865 MB / 412 MB, free: 17.82 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat