Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.514/2.514, allocations: 235.1 MB / 243 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.765e-05/1.775e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3422, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.497, allocations: 84.19 MB / 442.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4973, allocations: 67.91 kB / 442.4 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02804/0.5254, allocations: 5.884 MB / 448.3 MB, free: 4.586 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5254, allocations: 4 kB / 448.3 MB, free: 4.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.5255, allocations: 8 kB / 448.3 MB, free: 4.574 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001843/0.5273, allocations: 0.7555 MB / 449 MB, free: 3.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.5274, allocations: 8.031 kB / 449 MB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.5275, allocations: 51.48 kB / 449.1 MB, free: 3.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.5278, allocations: 199.6 kB / 449.3 MB, free: 3.453 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/0.5278, allocations: 15.94 kB / 449.3 MB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.005e-05/0.5279, allocations: 32 kB / 449.3 MB, free: 3.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007175/0.5286, allocations: 229.5 kB / 449.6 MB, free: 3.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008532/0.5295, allocations: 329.4 kB / 449.9 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.5295, allocations: 0 / 449.9 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.384e-05/0.5296, allocations: 11.94 kB / 449.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.5296, allocations: 8 kB / 449.9 MB, free: 2.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.5322, allocations: 0.8739 MB / 450.8 MB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.5337, allocations: 402.7 kB / 451.2 MB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003665/0.5341, allocations: 141.2 kB / 451.3 MB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.5342, allocations: 4.328 kB / 451.3 MB, free: 1.367 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006257/0.5348, allocations: 293.4 kB / 451.6 MB, free: 1.055 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.176e-06/0.5348, allocations: 0 / 451.6 MB, free: 1.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001078/0.5359, allocations: 381.1 kB / 452 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.5361, allocations: 196.3 kB / 452.2 MB, free: 452 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.5364, allocations: 194.8 kB / 452.3 MB, free: 252 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.5364, allocations: 37.7 kB / 452.4 MB, free: 208 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5367, allocations: 231.3 kB / 452.6 MB, free: 15.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.5368, allocations: 110.6 kB / 452.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.5369, allocations: 3.938 kB / 452.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.537, allocations: 338.8 kB / 453.1 MB, free: 15.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.5374, allocations: 125.1 kB / 453.2 MB, free: 15.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004228/0.5379, allocations: 166.8 kB / 453.3 MB, free: 15.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.5382, allocations: 102.1 kB / 453.4 MB, free: 15.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5382, allocations: 0 / 453.4 MB, free: 15.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001326/0.5396, allocations: 415.6 kB / 453.8 MB, free: 14.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.5397, allocations: 124.2 kB / 454 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5397, allocations: 0 / 454 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.5399, allocations: 28.84 kB / 454 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.5402, allocations: 39.91 kB / 454 MB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.542, allocations: 1.38 MB / 455.4 MB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006066/0.5426, allocations: 71.97 kB / 455.5 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.5427, allocations: 20 kB / 455.5 MB, free: 12.92 MB / 394.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: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002969/0.543, allocations: 201.6 kB / 455.7 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001044/0.5441, allocations: 404.8 kB / 456.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.5441, allocations: 27.72 kB / 456.1 MB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.5443, allocations: 31.41 kB / 456.1 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.5443, allocations: 8 kB / 456.2 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5443, allocations: 3.984 kB / 456.2 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5443, allocations: 0 / 456.2 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.546, allocations: 0.8152 MB / 457 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.546, allocations: 0 / 457 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.5463, allocations: 39.91 kB / 457 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.443e-06/0.5463, allocations: 0 / 457 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.5463, allocations: 11.98 kB / 457 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.5464, allocations: 4 kB / 457 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5464, allocations: 0 / 457 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.5475, allocations: 0.4918 MB / 457.5 MB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.544e-05/0.5476, allocations: 100.7 kB / 457.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.299e-05/0.5477, allocations: 12 kB / 457.6 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006454/0.5483, allocations: 63.94 kB / 457.7 MB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.5486, allocations: 75.88 kB / 457.8 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/0.5487, allocations: 16 kB / 457.8 MB, free: 10.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001627/0.5488, allocations: 133.2 kB / 457.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5489, allocations: 0 / 457.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007281/0.5496, allocations: 99.94 kB / 458 MB, free: 10.3 MB / 394.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: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.001716/0.5513, allocations: 1.106 MB / 459.1 MB, free: 9.168 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.5527, allocations: 0.6607 MB / 459.8 MB, free: 8.441 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5527, allocations: 0 / 459.8 MB, free: 8.441 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000616/0.5533, allocations: 328.8 kB / 460.1 MB, free: 8.098 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.5537, allocations: 27.72 kB / 460.1 MB, free: 8.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.5555, allocations: 0.5614 MB / 460.7 MB, free: 7.465 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.556, allocations: 0.8008 MB / 461.5 MB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.5564, allocations: 111.4 kB / 461.6 MB, free: 6.531 MB / 394.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5564, allocations: 0 / 461.6 MB, free: 6.531 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.406, allocations: 6.328 MB / 467.9 MB, free: 212 kB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat