Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.28/2.28, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004299, allocations: 15.98 kB / 314.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3646, allocations: 54.85 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006172/0.3653, allocations: 212.5 kB / 369.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006058/0.3659, allocations: 197.6 kB / 369.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.537e-05/0.3659, allocations: 0 / 369.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.907e-06/0.366, allocations: 0 / 369.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.366, allocations: 4 kB / 369.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.3663, allocations: 43.83 kB / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.754e-05/0.3663, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.077e-05/0.3663, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.492e-05/0.3664, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.658e-05/0.3664, allocations: 4 kB / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-06/0.3664, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3666, allocations: 39.95 kB / 369.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.101e-06/0.3666, allocations: 4 kB / 369.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.3666, allocations: 29.7 kB / 369.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.3668, allocations: 31.89 kB / 369.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.3668, allocations: 0 / 369.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3668, allocations: 0 / 369.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.3668, allocations: 0 / 369.8 MB, free: 10.18 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.0003255/0.3671, allocations: 349.1 kB / 370.2 MB, free: 9.785 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3672, allocations: 8.031 kB / 370.2 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.3672, allocations: 30.56 kB / 370.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.3673, allocations: 7.859 kB / 370.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3674, allocations: 163.1 kB / 370.4 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.3674, allocations: 0 / 370.4 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.3674, allocations: 7.984 kB / 370.4 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.535e-05/0.3675, allocations: 33.64 kB / 370.4 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3675, allocations: 0 / 370.4 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.3676, allocations: 0 / 370.4 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3676, allocations: 7.984 kB / 370.4 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.205e-05/0.3676, allocations: 3.953 kB / 370.4 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.3678, allocations: 145.7 kB / 370.6 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.886e-05/0.3678, allocations: 30.53 kB / 370.6 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3678, allocations: 0 / 370.6 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.3679, allocations: 64.2 kB / 370.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.413e-06/0.3679, allocations: 0 / 370.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001808/0.3681, allocations: 59.47 kB / 370.7 MB, free: 9.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.3682, allocations: 81.05 kB / 370.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.556e-05/0.3682, allocations: 93.97 kB / 370.9 MB, free: 8.895 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3683, allocations: 29.7 kB / 370.9 MB, free: 8.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.3683, allocations: 158.5 kB / 371.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.3684, allocations: 0 / 371.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.3684, allocations: 0 / 371.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3685, allocations: 318.8 kB / 371.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.004e-05/0.3685, allocations: 0 / 371.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.217e-06/0.3686, allocations: 4 kB / 371.4 MB, free: 8.379 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.091e-05/0.3686, allocations: 29.64 kB / 371.4 MB, free: 8.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3686, allocations: 4.062 kB / 371.4 MB, free: 8.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.109e-05/0.3687, allocations: 63.39 kB / 371.5 MB, free: 8.266 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.3688, allocations: 31.73 kB / 371.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3688, allocations: 0 / 371.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3688, allocations: 0 / 371.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3688, allocations: 0 / 371.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.026e-06/0.3688, allocations: 4 kB / 371.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.847e-05/0.3688, allocations: 0 / 371.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.3689, allocations: 0 / 371.5 MB, free: 8.227 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.0001098/0.369, allocations: 147.5 kB / 371.6 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.369, allocations: 0 / 371.6 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.206e-05/0.369, allocations: 7.109 kB / 371.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.369, allocations: 0 / 371.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.369, allocations: 0 / 371.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.369, allocations: 0 / 371.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.3692, allocations: 149.6 kB / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3692, allocations: 0 / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.71e-07/0.3692, allocations: 0 / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3692, allocations: 0 / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3692, allocations: 0 / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3692, allocations: 11.92 kB / 371.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3692, allocations: 0 / 371.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.3694, allocations: 90.8 kB / 371.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.3694, allocations: 77.11 kB / 372 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.3695, allocations: 3.984 kB / 372 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.554e-05/0.3695, allocations: 4 kB / 372 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.55e-05/0.3695, allocations: 3.938 kB / 372 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.3695, allocations: 7.969 kB / 372 MB, free: 7.629 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.61e-05/0.3696, allocations: 75.28 kB / 372.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3696, allocations: 0 / 372.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002663/0.3698, allocations: 20 kB / 372.1 MB, free: 7.535 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.0008455/0.3707, allocations: 0.737 MB / 372.8 MB, free: 6.801 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3708, allocations: 59.41 kB / 372.9 MB, free: 6.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3708, allocations: 0 / 372.9 MB, free: 6.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.341e-05/0.3709, allocations: 59.41 kB / 372.9 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.82e-05/0.371, allocations: 3.984 kB / 372.9 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003341/0.3713, allocations: 135.1 kB / 373.1 MB, free: 6.477 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.3716, allocations: 0.677 MB / 373.8 MB, free: 5.773 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.3717, allocations: 11.38 kB / 373.8 MB, free: 5.762 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.3717, allocations: 3.938 kB / 373.8 MB, free: 5.758 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.52/2.892, allocations: 0.9075 MB / 374.7 MB, free: 4.848 MB / 298.7 MB