Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 12 kB / 264.1 MB, free: 3.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3083, allocations: 44.5 MB / 308.5 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4643, allocations: 75.19 MB / 383.7 MB, free: 1.383 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.4646, allocations: 71.97 kB / 383.8 MB, free: 1.312 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02202/0.4866, allocations: 4.998 MB / 388.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4866, allocations: 0 / 388.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.611e-05/0.4867, allocations: 15.98 kB / 388.8 MB, free: 12.28 MB / 330.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.001409/0.4881, allocations: 0.6947 MB / 389.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.4882, allocations: 8.031 kB / 389.5 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.4883, allocations: 74.53 kB / 389.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.4884, allocations: 43.53 kB / 389.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005725/0.489, allocations: 297.4 kB / 389.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.601e-05/0.4891, allocations: 62.36 kB / 390 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.078e-05/0.4893, allocations: 36 kB / 390 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.4903, allocations: 409.7 kB / 390.4 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.4903, allocations: 0 / 390.4 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.4904, allocations: 12 kB / 390.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-05/0.4904, allocations: 16.42 kB / 390.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007524/0.4912, allocations: 245.5 kB / 390.7 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002742/0.4939, allocations: 1.577 MB / 392.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007771/0.4948, allocations: 267.9 kB / 392.5 MB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.383e-05/0.4949, allocations: 16 kB / 392.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006784/0.4956, allocations: 353.2 kB / 392.9 MB, free: 7.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.825e-06/0.4956, allocations: 0 / 392.9 MB, free: 7.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001595/0.4972, allocations: 0.6766 MB / 393.6 MB, free: 7.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.4973, allocations: 195.9 kB / 393.8 MB, free: 6.922 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.4978, allocations: 257.8 kB / 394 MB, free: 6.664 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.821e-05/0.4979, allocations: 45.69 kB / 394.1 MB, free: 6.613 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.4981, allocations: 180.7 kB / 394.2 MB, free: 6.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.4982, allocations: 86.97 kB / 394.3 MB, free: 6.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.4982, allocations: 11.94 kB / 394.3 MB, free: 6.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.4984, allocations: 342.8 kB / 394.7 MB, free: 5.992 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.4988, allocations: 117 kB / 394.8 MB, free: 5.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004747/0.4993, allocations: 248.1 kB / 395 MB, free: 5.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/0.4998, allocations: 217 kB / 395.2 MB, free: 5.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.4998, allocations: 0 / 395.2 MB, free: 5.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00124/0.501, allocations: 0.5215 MB / 395.8 MB, free: 4.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/0.5011, allocations: 95.59 kB / 395.9 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.5012, allocations: 4 kB / 395.9 MB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.5012, allocations: 11.95 kB / 395.9 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.5014, allocations: 35.86 kB / 395.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.5014, allocations: 4 kB / 395.9 MB, free: 4.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.5018, allocations: 36.38 kB / 395.9 MB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.5019, allocations: 28 kB / 396 MB, free: 4.578 MB / 330.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.0004026/0.5023, allocations: 249.1 kB / 396.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.878e-05/0.5024, allocations: 31.62 kB / 396.2 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007611/0.5032, allocations: 259.8 kB / 396.5 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.5032, allocations: 4 kB / 396.5 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.5032, allocations: 7.953 kB / 396.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5032, allocations: 3.984 kB / 396.5 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.5053, allocations: 1 MB / 397.5 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.5053, allocations: 0 / 397.5 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.5054, allocations: 8 kB / 397.5 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.5054, allocations: 0 / 397.5 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.5055, allocations: 15.98 kB / 397.5 MB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.556e-05/0.5055, allocations: 4 kB / 397.5 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.5055, allocations: 3.938 kB / 397.5 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.5067, allocations: 0.6428 MB / 398.2 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.5069, allocations: 104.7 kB / 398.3 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-05/0.507, allocations: 16 kB / 398.3 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/0.5074, allocations: 31.97 kB / 398.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.5076, allocations: 39.94 kB / 398.4 MB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.5076, allocations: 16 kB / 398.4 MB, free: 1.992 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002852/0.5079, allocations: 178 kB / 398.6 MB, free: 1.816 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5079, allocations: 3.938 kB / 398.6 MB, free: 1.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007481/0.5087, allocations: 100.1 kB / 398.7 MB, free: 1.715 MB / 330.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.001945/0.5107, allocations: 1.409 MB / 400.1 MB, free: 264 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.5119, allocations: 0.5018 MB / 400.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5119, allocations: 0 / 400.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.5125, allocations: 302.7 kB / 400.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.5131, allocations: 45.38 kB / 400.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008012/0.5211, allocations: 4.312 MB / 405.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.522, allocations: 0.7997 MB / 406 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004197/0.5225, allocations: 50.94 kB / 406.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.5229, allocations: 127.4 kB / 406.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5229, allocations: 0 / 406.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08787/0.6108, allocations: 6.557 MB / 412.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/0.6111, allocations: 165.4 kB / 412.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.153/3.764, allocations: 3.938 kB / 412.9 MB, free: 3.156 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat