Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous.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.Continuous,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.421/2.421, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.147e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.4042, allocations: 54.84 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1986/0.6028, allocations: 88.9 MB / 447 MB, free: 5.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.6031, allocations: 63.97 kB / 447.1 MB, free: 5.777 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08655/0.6897, allocations: 13.65 MB / 460.7 MB, free: 8.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6897, allocations: 0 / 460.7 MB, free: 8.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.95e-05/0.6898, allocations: 16 kB / 460.7 MB, free: 8.074 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.003155/0.693, allocations: 0.9076 MB / 461.7 MB, free: 7.121 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.6931, allocations: 12.03 kB / 461.7 MB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003898/0.6935, allocations: 82.97 kB / 461.7 MB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.6952, allocations: 0.5149 MB / 462.3 MB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.6953, allocations: 15.98 kB / 462.3 MB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.6954, allocations: 39.91 kB / 462.3 MB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001025/0.6965, allocations: 317.4 kB / 462.6 MB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.6976, allocations: 421.1 kB / 463 MB, free: 5.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/0.6976, allocations: 4 kB / 463 MB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.6977, allocations: 0 / 463 MB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.6977, allocations: 12 kB / 463.1 MB, free: 5.648 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005723/0.7035, allocations: 1.873 MB / 464.9 MB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.7048, allocations: 452.3 kB / 465.4 MB, free: 3.246 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.7053, allocations: 185.2 kB / 465.5 MB, free: 3.059 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.799e-05/0.7054, allocations: 11.98 kB / 465.6 MB, free: 3.047 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.7055, allocations: 42.59 kB / 465.6 MB, free: 2.996 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 5.14e-06/0.7055, allocations: 4 kB / 465.6 MB, free: 2.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.002245/0.7078, allocations: 0.7158 MB / 466.3 MB, free: 2.266 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.7079, allocations: 132.5 kB / 466.4 MB, free: 2.105 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008775/0.7088, allocations: 455.5 kB / 466.9 MB, free: 1.652 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.559e-05/0.7089, allocations: 25.7 kB / 466.9 MB, free: 1.621 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003214/0.7092, allocations: 338.7 kB / 467.2 MB, free: 1.289 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.7095, allocations: 165.7 kB / 467.4 MB, free: 1.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.7096, allocations: 4 kB / 467.4 MB, free: 1.121 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.7097, allocations: 334.8 kB / 467.7 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005478/0.7103, allocations: 189.1 kB / 467.9 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006638/0.711, allocations: 295.7 kB / 468.2 MB, free: 280 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006052/0.7116, allocations: 205.3 kB / 468.4 MB, free: 76 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.7116, allocations: 11.97 kB / 468.4 MB, free: 64 kB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.3093/1.021, allocations: 0.5087 MB / 468.9 MB, free: 95.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000281/1.021, allocations: 1.05 MB / 470 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/1.021, allocations: 2.688 kB / 470 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.247e-05/1.021, allocations: 8.656 kB / 470 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/1.023, allocations: 150.6 kB / 470.1 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/1.023, allocations: 9.703 kB / 470.2 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/1.024, allocations: 79.94 kB / 470.2 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/1.024, allocations: 25.08 kB / 470.3 MB, free: 93.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.024, allocations: 9.094 kB / 470.3 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00151/1.026, allocations: 468.6 kB / 470.7 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/1.026, allocations: 2.625 kB / 470.7 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/1.026, allocations: 5.938 kB / 470.7 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/1.027, allocations: 138.9 kB / 470.9 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/1.027, allocations: 13.48 kB / 470.9 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006697/1.028, allocations: 53.23 kB / 470.9 MB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.639e-05/1.028, allocations: 19.33 kB / 470.9 MB, free: 93.97 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0002541/1.028, allocations: 117.2 kB / 471.1 MB, free: 93.86 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001473/1.03, allocations: 444.5 kB / 471.5 MB, free: 93.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/1.03, allocations: 66.75 kB / 471.6 MB, free: 93.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/1.03, allocations: 79.55 kB / 471.6 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/1.03, allocations: 5.094 kB / 471.6 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/1.03, allocations: 1.062 kB / 471.6 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/1.03, allocations: 4.047 kB / 471.7 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/1.032, allocations: 0.7251 MB / 472.4 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/1.032, allocations: 5.922 kB / 472.4 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/1.034, allocations: 113.6 kB / 472.5 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/1.034, allocations: 3.672 kB / 472.5 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.276e-05/1.034, allocations: 8.922 kB / 472.5 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.777e-06/1.034, allocations: 7.219 kB / 472.5 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.034, allocations: 1.312 kB / 472.5 MB, free: 93.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/1.036, allocations: 0.9381 MB / 473.5 MB, free: 93.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/1.036, allocations: 187.2 kB / 473.6 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/1.036, allocations: 8.984 kB / 473.6 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/1.037, allocations: 60.55 kB / 473.7 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/1.038, allocations: 41.84 kB / 473.7 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.342e-05/1.038, allocations: 12.52 kB / 473.8 MB, free: 93.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000668/1.038, allocations: 353.6 kB / 474.1 MB, free: 92.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.038, allocations: 1.562 kB / 474.1 MB, free: 92.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001199/1.04, allocations: 158.7 kB / 474.3 MB, free: 92.99 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.002064/1.042, allocations: 1.629 MB / 475.9 MB, free: 91.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001824/1.043, allocations: 0.6975 MB / 476.6 MB, free: 91.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.044, allocations: 0 / 476.6 MB, free: 91.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/1.044, allocations: 213.2 kB / 476.8 MB, free: 91.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/1.045, allocations: 153.5 kB / 476.9 MB, free: 91.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/1.049, allocations: 1.314 MB / 478.3 MB, free: 91.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/1.05, allocations: 0.9445 MB / 479.2 MB, free: 90.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005881/1.05, allocations: 240.1 kB / 479.4 MB, free: 90.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/1.05, allocations: 0 / 479.4 MB, free: 90.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.875/3.925, allocations: 10.55 MB / 490 MB, free: 88.27 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous_res.mat does not exist to compare? outputFormat=mat