Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.993/1.993, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006599/0.00066, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1338, allocations: 48.71 MB / 331.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5578/0.6917, allocations: 78.56 MB / 409.9 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.692, allocations: 63.97 kB / 410 MB, free: 6.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02963/0.7217, allocations: 5.924 MB / 415.9 MB, free: 436 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7217, allocations: 0 / 415.9 MB, free: 436 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.7218, allocations: 12 kB / 415.9 MB, free: 424 kB / 330.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.002084/0.7239, allocations: 0.7758 MB / 416.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.7239, allocations: 16.02 kB / 416.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.7241, allocations: 78.53 kB / 416.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.7243, allocations: 43.53 kB / 416.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.7245, allocations: 210.4 kB / 417 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/0.7246, allocations: 29 kB / 417.1 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.7247, allocations: 44 kB / 417.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.726, allocations: 366.4 kB / 417.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.726, allocations: 11.98 kB / 417.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-05/0.7261, allocations: 19.98 kB / 417.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.7261, allocations: 8 kB / 417.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.7274, allocations: 319.8 kB / 417.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.7304, allocations: 0.9462 MB / 418.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.7324, allocations: 451.4 kB / 419.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.7325, allocations: 8.266 kB / 419.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.7336, allocations: 349.2 kB / 419.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 4.017e-06/0.7336, allocations: 4 kB / 419.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002645/0.7363, allocations: 0.834 MB / 420.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.7364, allocations: 174.6 kB / 420.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.7368, allocations: 210.1 kB / 420.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.7369, allocations: 45.69 kB / 420.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.7371, allocations: 227.2 kB / 421 MB, free: 10.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.7373, allocations: 114.7 kB / 421.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-05/0.7374, allocations: 12 kB / 421.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.7376, allocations: 330.8 kB / 421.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007337/0.7383, allocations: 169 kB / 421.6 MB, free: 10.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006595/0.739, allocations: 173 kB / 421.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.7397, allocations: 245 kB / 422.1 MB, free: 9.926 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.7397, allocations: 0 / 422.1 MB, free: 9.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00169/0.7414, allocations: 0.564 MB / 422.6 MB, free: 9.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.7416, allocations: 118.8 kB / 422.7 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.7416, allocations: 8 kB / 422.7 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.7416, allocations: 0 / 422.7 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.742, allocations: 47.84 kB / 422.8 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.742, allocations: 4 kB / 422.8 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.7426, allocations: 75.78 kB / 422.9 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-05/0.7427, allocations: 23.94 kB / 422.9 MB, free: 9.031 MB / 346.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.0004353/0.7432, allocations: 241.1 kB / 423.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.7433, allocations: 31.72 kB / 423.2 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.7434, allocations: 39.3 kB / 423.2 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.7434, allocations: 4 kB / 423.2 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.7435, allocations: 0 / 423.2 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.7435, allocations: 0 / 423.2 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.7461, allocations: 1.029 MB / 424.2 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.7462, allocations: 4 kB / 424.2 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.7464, allocations: 35.91 kB / 424.3 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.7465, allocations: 0 / 424.3 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.7465, allocations: 15.98 kB / 424.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.7465, allocations: 0 / 424.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7465, allocations: 0 / 424.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001932/0.7485, allocations: 0.6669 MB / 425 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/0.7488, allocations: 136.6 kB / 425.1 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.7489, allocations: 23.98 kB / 425.1 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006557/0.7496, allocations: 67.94 kB / 425.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/0.7498, allocations: 67.88 kB / 425.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.893e-05/0.7499, allocations: 15.98 kB / 425.3 MB, free: 6.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002125/0.7501, allocations: 141.3 kB / 425.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7502, allocations: 0 / 425.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006544/0.7508, allocations: 115.9 kB / 425.5 MB, free: 6.277 MB / 346.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.002634/0.7535, allocations: 1.273 MB / 426.8 MB, free: 4.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.7553, allocations: 0.6496 MB / 427.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7554, allocations: 0 / 427.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.7564, allocations: 371 kB / 427.8 MB, free: 3.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.7568, allocations: 31.77 kB / 427.8 MB, free: 3.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.7624, allocations: 1.977 MB / 429.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.763, allocations: 0.8037 MB / 430.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003471/0.7633, allocations: 111.4 kB / 430.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/0.7633, allocations: 0 / 430.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.678/3.441, allocations: 5.565 MB / 436.3 MB, free: 11.32 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat