Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.566/2.566, allocations: 234.9 MB / 250.5 MB, free: 9.684 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004394/0.0004398, allocations: 12 kB / 314.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3723, allocations: 54.85 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006541/0.373, allocations: 220.5 kB / 369.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007605/0.3738, allocations: 233.5 kB / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.797e-05/0.3738, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.064e-05/0.3738, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.053e-06/0.3738, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.3742, allocations: 35.84 kB / 369.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.326e-05/0.3742, allocations: 11.97 kB / 369.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.363e-05/0.3743, allocations: 0 / 369.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.713e-05/0.3743, allocations: 0 / 369.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.645e-05/0.3743, allocations: 0 / 369.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.3744, allocations: 4 kB / 369.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.3746, allocations: 51.89 kB / 369.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.3746, allocations: 3.938 kB / 369.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.3746, allocations: 25.7 kB / 369.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.3748, allocations: 35.95 kB / 369.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.3748, allocations: 0 / 369.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3748, allocations: 0 / 369.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.3748, allocations: 0 / 369.9 MB, free: 12.17 MB / 298.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.0003713/0.3752, allocations: 361.1 kB / 370.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3753, allocations: 12.03 kB / 370.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.3753, allocations: 34.56 kB / 370.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.3753, allocations: 7.859 kB / 370.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.3755, allocations: 159.1 kB / 370.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3755, allocations: 0 / 370.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.3755, allocations: 3.938 kB / 370.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.423e-05/0.3756, allocations: 33.69 kB / 370.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3756, allocations: 0 / 370.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.3757, allocations: 0 / 370.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.3757, allocations: 0 / 370.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.562e-05/0.3757, allocations: 7.891 kB / 370.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001635/0.3759, allocations: 149.7 kB / 370.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.3759, allocations: 22.58 kB / 370.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.376, allocations: 0 / 370.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.528e-05/0.376, allocations: 64.34 kB / 370.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.3761, allocations: 0 / 370.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002073/0.3763, allocations: 63.34 kB / 370.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.3763, allocations: 81.23 kB / 370.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.3764, allocations: 93.86 kB / 370.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3764, allocations: 25.7 kB / 371 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.3765, allocations: 154.5 kB / 371.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.3766, allocations: 0 / 371.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-06/0.3766, allocations: 0 / 371.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3767, allocations: 318.8 kB / 371.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.226e-05/0.3767, allocations: 0 / 371.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.765e-06/0.3768, allocations: 0 / 371.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.3768, allocations: 33.77 kB / 371.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3768, allocations: 0 / 371.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000101/0.3769, allocations: 63.34 kB / 371.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.744e-05/0.377, allocations: 41.62 kB / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.377, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.377, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-06/0.377, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.3771, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.3771, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.3771, allocations: 32 / 371.6 MB, free: 10.21 MB / 298.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 () * Number of clocked 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 0.0001133/0.3772, allocations: 143.5 kB / 371.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.3773, allocations: 0 / 371.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.167e-05/0.3773, allocations: 3.125 kB / 371.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.3773, allocations: 7.984 kB / 371.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3773, allocations: 0 / 371.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3773, allocations: 0 / 371.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.3775, allocations: 149.6 kB / 371.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3775, allocations: 0 / 371.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.3775, allocations: 0 / 371.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3775, allocations: 4 kB / 371.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.3775, allocations: 7.984 kB / 371.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3775, allocations: 3.938 kB / 371.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3775, allocations: 0 / 371.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.3777, allocations: 98.72 kB / 372 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.3777, allocations: 81.11 kB / 372 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3778, allocations: 7.984 kB / 372.1 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.3778, allocations: 4.031 kB / 372.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.817e-05/0.3778, allocations: 0 / 372.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.3778, allocations: 4 kB / 372.1 MB, free: 9.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.26e-05/0.3779, allocations: 75.28 kB / 372.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3779, allocations: 0 / 372.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.3782, allocations: 20 kB / 372.2 MB, free: 9.512 MB / 298.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) * Number of clocked states: 0 () * 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.001079/0.3793, allocations: 0.8069 MB / 373 MB, free: 8.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.3794, allocations: 63.33 kB / 373 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3795, allocations: 0 / 373 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/0.3795, allocations: 59.47 kB / 373.1 MB, free: 8.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.3796, allocations: 4 kB / 373.1 MB, free: 8.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003785/0.38, allocations: 142 kB / 373.2 MB, free: 8.402 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.3803, allocations: 0.6731 MB / 373.9 MB, free: 7.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.738e-05/0.3804, allocations: 7.438 kB / 373.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.3804, allocations: 0 / 373.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.221/2.602, allocations: 1.126 MB / 375 MB, free: 6.566 MB / 298.7 MB