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.439/2.439, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.307e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4017, allocations: 54.85 MB / 364.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1581/0.5599, allocations: 84.86 MB / 449.5 MB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.5602, allocations: 64.62 kB / 449.5 MB, free: 11.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03435/0.5946, allocations: 5.937 MB / 455.5 MB, free: 5.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5946, allocations: 0 / 455.5 MB, free: 5.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.579e-05/0.5947, allocations: 8 kB / 455.5 MB, free: 5.543 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.002466/0.5971, allocations: 0.7651 MB / 456.2 MB, free: 4.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/0.5972, allocations: 8.031 kB / 456.3 MB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001876/0.5974, allocations: 75.28 kB / 456.3 MB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.5976, allocations: 43.53 kB / 456.4 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.5979, allocations: 211.6 kB / 456.6 MB, free: 4.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.241e-05/0.598, allocations: 32.78 kB / 456.6 MB, free: 4.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.5982, allocations: 40 kB / 456.6 MB, free: 4.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.5997, allocations: 382.9 kB / 457 MB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.5997, allocations: 0 / 457 MB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.331e-05/0.5998, allocations: 23.95 kB / 457 MB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.5998, allocations: 9.688 kB / 457.1 MB, free: 3.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.601, allocations: 247.1 kB / 457.3 MB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.605, allocations: 0.9452 MB / 458.2 MB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.6072, allocations: 419.5 kB / 458.7 MB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.6079, allocations: 149.2 kB / 458.8 MB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.197e-05/0.608, allocations: 8.281 kB / 458.8 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009392/0.609, allocations: 313.4 kB / 459.1 MB, free: 1.684 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.719e-06/0.609, allocations: 4 kB / 459.1 MB, free: 1.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001682/0.6107, allocations: 468.4 kB / 459.6 MB, free: 1.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/0.6109, allocations: 196.4 kB / 459.8 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.6113, allocations: 198.9 kB / 460 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001359/0.6114, allocations: 49.69 kB / 460 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.6116, allocations: 227.2 kB / 460.2 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.6119, allocations: 110.6 kB / 460.3 MB, free: 392 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.536e-05/0.6119, allocations: 12 kB / 460.3 MB, free: 380 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.6121, allocations: 330.8 kB / 460.7 MB, free: 40 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000618/0.6127, allocations: 137.2 kB / 460.8 MB, free: 15.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006723/0.6134, allocations: 183.9 kB / 461 MB, free: 15.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.614, allocations: 218.9 kB / 461.2 MB, free: 15.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6141, allocations: 0 / 461.2 MB, free: 15.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00213/0.6162, allocations: 0.5571 MB / 461.8 MB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.6164, allocations: 114.8 kB / 461.9 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.6164, allocations: 3.984 kB / 461.9 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002489/0.6167, allocations: 28.86 kB / 461.9 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.6171, allocations: 39.91 kB / 461.9 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.6197, allocations: 1.432 MB / 463.4 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/0.6207, allocations: 79.95 kB / 463.4 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.471e-05/0.6208, allocations: 16.84 kB / 463.5 MB, free: 13.01 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.0003926/0.6212, allocations: 228.1 kB / 463.7 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.6214, allocations: 31.62 kB / 463.7 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.6216, allocations: 35.09 kB / 463.8 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.6216, allocations: 7.984 kB / 463.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6216, allocations: 0 / 463.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.6216, allocations: 4 kB / 463.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.6242, allocations: 0.9546 MB / 464.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.6243, allocations: 0 / 464.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.6247, allocations: 36.47 kB / 464.8 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.6247, allocations: 3.938 kB / 464.8 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-05/0.6248, allocations: 23.97 kB / 464.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.6248, allocations: 0 / 464.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.6248, allocations: 3.953 kB / 464.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.6265, allocations: 0.5889 MB / 465.4 MB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.6267, allocations: 104.7 kB / 465.5 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.6268, allocations: 19.98 kB / 465.5 MB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009236/0.6278, allocations: 67.94 kB / 465.6 MB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/0.6282, allocations: 67.89 kB / 465.6 MB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.572e-05/0.6283, allocations: 27.88 kB / 465.7 MB, free: 10.69 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002509/0.6285, allocations: 148.8 kB / 465.8 MB, free: 10.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6285, allocations: 0 / 465.8 MB, free: 10.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001067/0.6296, allocations: 123.8 kB / 465.9 MB, free: 10.42 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.002675/0.6323, allocations: 1.193 MB / 467.1 MB, free: 9.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.6343, allocations: 0.6976 MB / 467.8 MB, free: 8.434 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6343, allocations: 0 / 467.8 MB, free: 8.434 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008942/0.6353, allocations: 339.2 kB / 468.1 MB, free: 8.078 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.6358, allocations: 23.84 kB / 468.2 MB, free: 8.055 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.6382, allocations: 0.591 MB / 468.8 MB, free: 7.414 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.6388, allocations: 0.8005 MB / 469.6 MB, free: 6.586 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/0.6392, allocations: 115.4 kB / 469.7 MB, free: 6.477 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6392, allocations: 0 / 469.7 MB, free: 6.477 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.722/3.361, allocations: 6.322 MB / 476 MB, free: 172 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