Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.202/2.202, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.162e-05/2.161e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3402, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.4875, allocations: 79.92 MB / 438 MB, free: 14.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.4878, allocations: 67.97 kB / 438.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02957/0.5173, allocations: 6.291 MB / 444.4 MB, free: 8.465 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5174, allocations: 4 kB / 444.4 MB, free: 8.461 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.5174, allocations: 0 / 444.4 MB, free: 8.461 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003579/0.5178, allocations: 370.2 kB / 444.8 MB, free: 8.051 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.5178, allocations: 8.031 kB / 444.8 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.5179, allocations: 11.86 kB / 444.8 MB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.518, allocations: 163 kB / 444.9 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.518, allocations: 4 kB / 444.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.5181, allocations: 3.984 kB / 444.9 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.98e-05/0.5181, allocations: 0 / 444.9 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.954e-05/0.5182, allocations: 37.69 kB / 445 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.5182, allocations: 0 / 445 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.5182, allocations: 0 / 445 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.5182, allocations: 3.953 kB / 445 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.5184, allocations: 126.2 kB / 445.1 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.315e-05/0.5184, allocations: 14.58 kB / 445.1 MB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.095e-05/0.5184, allocations: 16.83 kB / 445.1 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-06/0.5185, allocations: 0 / 445.1 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.995e-05/0.5185, allocations: 64.25 kB / 445.2 MB, free: 7.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.5185, allocations: 0 / 445.2 MB, free: 7.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.5187, allocations: 37.7 kB / 445.2 MB, free: 7.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.5188, allocations: 77.11 kB / 445.3 MB, free: 7.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.828e-05/0.5188, allocations: 85 kB / 445.4 MB, free: 7.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.5189, allocations: 25.7 kB / 445.4 MB, free: 7.238 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.78e-05/0.5189, allocations: 150.6 kB / 445.6 MB, free: 7.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.519, allocations: 4.031 kB / 445.6 MB, free: 7.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.519, allocations: 0 / 445.6 MB, free: 7.086 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5191, allocations: 322.8 kB / 445.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.5191, allocations: 0 / 445.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.5191, allocations: 0 / 445.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.491e-05/0.5192, allocations: 0 / 445.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.5192, allocations: 3.938 kB / 445.9 MB, free: 6.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.077e-05/0.5193, allocations: 37.64 kB / 445.9 MB, free: 6.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.5194, allocations: 33.7 kB / 446 MB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.5194, allocations: 8.094 kB / 446 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.5194, allocations: 3.984 kB / 446 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.542e-06/0.5194, allocations: 0 / 446 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.5194, allocations: 0 / 446 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.5194, allocations: 0 / 446 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.5195, allocations: 0 / 446 MB, free: 6.664 MB / 378.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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.428e-05/0.5196, allocations: 134.6 kB / 446.1 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.405e-05/0.5197, allocations: 37.69 kB / 446.1 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-06/0.5197, allocations: 0 / 446.1 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.5197, allocations: 11.73 kB / 446.2 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.5197, allocations: 0 / 446.2 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5197, allocations: 4 kB / 446.2 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5197, allocations: 3.938 kB / 446.2 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.759e-05/0.5198, allocations: 126.2 kB / 446.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5198, allocations: 0 / 446.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.5199, allocations: 0 / 446.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.5199, allocations: 0 / 446.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.5199, allocations: 7.984 kB / 446.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5199, allocations: 3.938 kB / 446.3 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5199, allocations: 0 / 446.3 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.5201, allocations: 69.08 kB / 446.4 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.5201, allocations: 81.09 kB / 446.4 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.5201, allocations: 8 kB / 446.4 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.5202, allocations: 0 / 446.4 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.649e-05/0.5202, allocations: 0 / 446.4 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.5202, allocations: 0 / 446.4 MB, free: 6.098 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.108e-05/0.5202, allocations: 79.28 kB / 446.5 MB, free: 6.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5203, allocations: 4.031 kB / 446.5 MB, free: 6.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002613/0.5205, allocations: 12 kB / 446.5 MB, free: 6.004 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005922/0.5211, allocations: 0.6242 MB / 447.2 MB, free: 5.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.952e-05/0.5212, allocations: 55.41 kB / 447.2 MB, free: 5.285 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5213, allocations: 0 / 447.2 MB, free: 5.285 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.5213, allocations: 59.39 kB / 447.3 MB, free: 5.215 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.928e-05/0.5214, allocations: 2.969 kB / 447.3 MB, free: 5.215 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002717/0.5217, allocations: 99.44 kB / 447.4 MB, free: 5.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.522, allocations: 0.6806 MB / 448.1 MB, free: 4.367 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.522, allocations: 7.438 kB / 448.1 MB, free: 4.359 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.522, allocations: 4.125 kB / 448.1 MB, free: 4.355 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.331/2.853, allocations: 0.5737 MB / 448.6 MB, free: 3.781 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions_res.mat does not exist to compare? outputFormat=mat