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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.355/2.355, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004373/0.0004373, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3654, allocations: 54.85 MB / 369.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1831/0.5486, allocations: 84.95 MB / 454.3 MB, free: 5.535 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.5489, allocations: 63.92 kB / 454.4 MB, free: 5.473 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03678/0.5857, allocations: 5.956 MB / 460.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5858, allocations: 0 / 460.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.5859, allocations: 8 kB / 460.3 MB, free: 15.49 MB / 394.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.002518/0.5884, allocations: 0.7815 MB / 461.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.5885, allocations: 8.031 kB / 461.1 MB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001787/0.5886, allocations: 78.48 kB / 461.2 MB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.5889, allocations: 47.52 kB / 461.2 MB, free: 14.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.5892, allocations: 207.5 kB / 461.4 MB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.929e-05/0.5893, allocations: 33 kB / 461.5 MB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.5894, allocations: 43.98 kB / 461.5 MB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.5912, allocations: 422.1 kB / 461.9 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.5913, allocations: 0 / 461.9 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.602e-05/0.5914, allocations: 12 kB / 461.9 MB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.5914, allocations: 11.95 kB / 462 MB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.5931, allocations: 319.8 kB / 462.3 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.5968, allocations: 0.954 MB / 463.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/0.5993, allocations: 452.3 kB / 463.7 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.786e-05/0.5994, allocations: 4.328 kB / 463.7 MB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/0.6007, allocations: 357.2 kB / 464 MB, free: 11.58 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 4.709e-06/0.6007, allocations: 0 / 464 MB, free: 11.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.00342/0.6042, allocations: 0.8417 MB / 464.9 MB, free: 10.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.6044, allocations: 200.3 kB / 465 MB, free: 10.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.6048, allocations: 198.8 kB / 465.2 MB, free: 10.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.605, allocations: 49.69 kB / 465.3 MB, free: 10.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.6052, allocations: 231.2 kB / 465.5 MB, free: 9.953 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/0.6055, allocations: 110.7 kB / 465.6 MB, free: 9.844 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.978e-05/0.6056, allocations: 8 kB / 465.6 MB, free: 9.836 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.6058, allocations: 330.8 kB / 466 MB, free: 9.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.6067, allocations: 169 kB / 466.1 MB, free: 9.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007713/0.6075, allocations: 211.7 kB / 466.3 MB, free: 9.125 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.6082, allocations: 249 kB / 466.6 MB, free: 8.859 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6082, allocations: 0 / 466.6 MB, free: 8.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001717/0.61, allocations: 0.5641 MB / 467.1 MB, free: 8.266 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.6101, allocations: 118.8 kB / 467.3 MB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.6101, allocations: 3.953 kB / 467.3 MB, free: 8.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.6102, allocations: 4 kB / 467.3 MB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.6105, allocations: 51.84 kB / 467.3 MB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.6106, allocations: 3.984 kB / 467.3 MB, free: 8.062 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005598/0.6111, allocations: 79.8 kB / 467.4 MB, free: 7.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.6112, allocations: 16 kB / 467.4 MB, free: 7.969 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * 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.0003885/0.6116, allocations: 245.1 kB / 467.6 MB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.6117, allocations: 31.62 kB / 467.7 MB, free: 7.676 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.6119, allocations: 43.3 kB / 467.7 MB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.6119, allocations: 7.953 kB / 467.7 MB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.6119, allocations: 3.938 kB / 467.7 MB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.6119, allocations: 0 / 467.7 MB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.6144, allocations: 1.025 MB / 468.8 MB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.6144, allocations: 0 / 468.8 MB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.6147, allocations: 35.92 kB / 468.8 MB, free: 6.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.6147, allocations: 7.953 kB / 468.8 MB, free: 6.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.6147, allocations: 15.98 kB / 468.8 MB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.6148, allocations: 0 / 468.8 MB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.6148, allocations: 4 kB / 468.8 MB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.6166, allocations: 0.6551 MB / 469.5 MB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.6167, allocations: 104.8 kB / 469.6 MB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.6169, allocations: 19.95 kB / 469.6 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.6175, allocations: 71.94 kB / 469.7 MB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.6178, allocations: 63.89 kB / 469.7 MB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-05/0.6179, allocations: 15.98 kB / 469.7 MB, free: 5.496 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001996/0.6181, allocations: 153.1 kB / 469.9 MB, free: 5.348 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6181, allocations: 0 / 469.9 MB, free: 5.348 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006586/0.6188, allocations: 119.9 kB / 470 MB, free: 5.23 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) * Number of clocked states: 0 () * 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.002529/0.6213, allocations: 1.27 MB / 471.3 MB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.6231, allocations: 0.6482 MB / 471.9 MB, free: 3.223 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6231, allocations: 8 kB / 471.9 MB, free: 3.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009241/0.624, allocations: 375.1 kB / 472.3 MB, free: 2.824 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.6244, allocations: 23.81 kB / 472.3 MB, free: 2.801 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00531/0.6297, allocations: 1.99 MB / 474.3 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3101/0.9399, allocations: 0.7964 MB / 475.1 MB, free: 96.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.9403, allocations: 112 kB / 475.2 MB, free: 96.35 MB / 394.7 MB Notification: Performance of SimCode: time 1.031e-06/0.9404, allocations: 0 / 475.2 MB, free: 96.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.03/3.971, allocations: 5.611 MB / 480.8 MB, free: 96.03 MB / 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