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.BooleanNetwork1.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.BooleanNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.593/1.593, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.0004851, allocations: 11.98 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07898/0.07951, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3328/0.4124, allocations: 69.87 MB / 342 MB, free: 3.664 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4127, allocations: 70.09 kB / 342 MB, free: 3.629 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02185/0.4346, allocations: 5.007 MB / 347 MB, free: 15.28 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4346, allocations: 4 kB / 347 MB, free: 15.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.304e-05/0.4347, allocations: 12 kB / 347.1 MB, free: 15.26 MB / 282.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.001343/0.436, allocations: 0.684 MB / 347.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4361, allocations: 12.03 kB / 347.8 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.4362, allocations: 74.34 kB / 347.8 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.4364, allocations: 47.44 kB / 347.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005251/0.4369, allocations: 284.2 kB / 348.1 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.336e-05/0.437, allocations: 68.12 kB / 348.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.21e-05/0.4371, allocations: 40.19 kB / 348.3 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009225/0.438, allocations: 405.4 kB / 348.7 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.4381, allocations: 3.938 kB / 348.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.4381, allocations: 17.3 kB / 348.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.505e-05/0.4382, allocations: 12.44 kB / 348.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007102/0.4389, allocations: 247.1 kB / 348.9 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.4415, allocations: 1.571 MB / 350.5 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.4422, allocations: 277.1 kB / 350.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.693e-05/0.4423, allocations: 12.14 kB / 350.8 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006121/0.443, allocations: 354.8 kB / 351.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=36): time 2.665e-06/0.443, allocations: 0 / 351.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=36): time 0.001521/0.4445, allocations: 0.6674 MB / 351.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.4446, allocations: 191.9 kB / 352 MB, free: 10.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.445, allocations: 264.7 kB / 352.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.935e-05/0.4451, allocations: 40.64 kB / 352.3 MB, free: 10.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.4453, allocations: 245 kB / 352.5 MB, free: 10.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.4454, allocations: 84.41 kB / 352.6 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.4455, allocations: 11.12 kB / 352.6 MB, free: 10.03 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4456, allocations: 329.6 kB / 352.9 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003425/0.4459, allocations: 112.9 kB / 353 MB, free: 9.633 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.4464, allocations: 245 kB / 353.3 MB, free: 9.383 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.4468, allocations: 215 kB / 353.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4469, allocations: 0 / 353.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00116/0.448, allocations: 0.5012 MB / 354 MB, free: 8.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.618e-05/0.4481, allocations: 100.7 kB / 354.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4482, allocations: 4 kB / 354.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.4482, allocations: 4 kB / 354.1 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.4484, allocations: 35.17 kB / 354.1 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.4484, allocations: 12 kB / 354.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.4488, allocations: 43.81 kB / 354.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.911e-05/0.4488, allocations: 23.45 kB / 354.2 MB, free: 8.555 MB / 282.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.0003823/0.4492, allocations: 267.9 kB / 354.5 MB, free: 8.301 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.41e-05/0.4493, allocations: 35.62 kB / 354.5 MB, free: 8.266 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007166/0.4501, allocations: 251 kB / 354.8 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4501, allocations: 4 kB / 354.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.4501, allocations: 0 / 354.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4501, allocations: 3.984 kB / 354.8 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.452, allocations: 0.9891 MB / 355.7 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.4521, allocations: 4 kB / 355.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.4521, allocations: 7.188 kB / 355.8 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.4522, allocations: 4 kB / 355.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.4522, allocations: 19.69 kB / 355.8 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.4522, allocations: 4 kB / 355.8 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4522, allocations: 4 kB / 355.8 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.4534, allocations: 0.6469 MB / 356.4 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.4535, allocations: 100.7 kB / 356.5 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.414e-05/0.4536, allocations: 15.75 kB / 356.6 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.4539, allocations: 31.72 kB / 356.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.4541, allocations: 31.14 kB / 356.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.574e-05/0.4542, allocations: 27.48 kB / 356.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002514/0.4544, allocations: 175 kB / 356.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.244e-06/0.4545, allocations: 0 / 356.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007087/0.4552, allocations: 106.8 kB / 356.9 MB, free: 6.105 MB / 282.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.001779/0.457, allocations: 1.391 MB / 358.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.458, allocations: 0.4943 MB / 358.8 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4581, allocations: 3.938 kB / 358.8 MB, free: 4.324 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005509/0.4586, allocations: 322.6 kB / 359.1 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.4592, allocations: 38.61 kB / 359.2 MB, free: 4.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.4643, allocations: 4.356 MB / 363.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.4648, allocations: 0.8074 MB / 364.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.4651, allocations: 124.6 kB / 364.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.4651, allocations: 0 / 364.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.53/2.995, allocations: 5.854 MB / 370.3 MB, free: 9.172 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat