Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sensors.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: translateModel(ModelicaTest.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sensors") Notification: Performance of loadModel(ModelicaTest): time 2.568/2.568, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.00042, allocations: 12 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3335, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.479, allocations: 82.5 MB / 452.3 MB, free: 8.125 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.4793, allocations: 71.97 kB / 452.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01212/0.4914, allocations: 2.774 MB / 455.1 MB, free: 5.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4915, allocations: 0 / 455.1 MB, free: 5.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.4915, allocations: 4 kB / 455.1 MB, free: 5.266 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0007748/0.4923, allocations: 427.1 kB / 455.6 MB, free: 4.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.4924, allocations: 12.03 kB / 455.6 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.4924, allocations: 19.77 kB / 455.6 MB, free: 4.766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.4927, allocations: 203 kB / 455.8 MB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.4927, allocations: 12.28 kB / 455.8 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.4928, allocations: 16 kB / 455.8 MB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.4933, allocations: 139.8 kB / 456 MB, free: 4.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4933, allocations: 3.938 kB / 456 MB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.4933, allocations: 4 kB / 456 MB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4934, allocations: 4 kB / 456 MB, free: 4.348 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.4939, allocations: 120.7 kB / 456.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.495, allocations: 0.5551 MB / 456.6 MB, free: 3.609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.4954, allocations: 78.56 kB / 456.7 MB, free: 3.523 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.4955, allocations: 0 / 456.7 MB, free: 3.523 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.4955, allocations: 34.52 kB / 456.8 MB, free: 3.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.763e-06/0.4955, allocations: 4 kB / 456.8 MB, free: 3.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006898/0.4962, allocations: 125.7 kB / 456.9 MB, free: 3.348 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.4963, allocations: 55.41 kB / 456.9 MB, free: 3.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.4965, allocations: 152.9 kB / 457.1 MB, free: 3.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.4965, allocations: 25.7 kB / 457.1 MB, free: 3.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4966, allocations: 205.9 kB / 457.3 MB, free: 2.891 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.4967, allocations: 23.64 kB / 457.3 MB, free: 2.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-06/0.4967, allocations: 4 kB / 457.3 MB, free: 2.863 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.4968, allocations: 310.8 kB / 457.6 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.497, allocations: 43.91 kB / 457.7 MB, free: 2.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.4972, allocations: 68.2 kB / 457.7 MB, free: 2.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.4975, allocations: 39.98 kB / 457.8 MB, free: 2.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4975, allocations: 0 / 457.8 MB, free: 2.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004939/0.498, allocations: 129.9 kB / 457.9 MB, free: 2.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.498, allocations: 8 kB / 457.9 MB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.498, allocations: 3.953 kB / 457.9 MB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.4981, allocations: 4 kB / 457.9 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.4983, allocations: 31.98 kB / 458 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.4984, allocations: 7.938 kB / 458 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.4985, allocations: 19.83 kB / 458 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.4986, allocations: 8 kB / 458 MB, free: 2.172 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001369/0.4987, allocations: 117.8 kB / 458.1 MB, free: 2.047 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.4988, allocations: 7.906 kB / 458.1 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.4988, allocations: 12.31 kB / 458.1 MB, free: 2.031 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.4988, allocations: 7.938 kB / 458.1 MB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4989, allocations: 0 / 458.1 MB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.4989, allocations: 0 / 458.1 MB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/0.4992, allocations: 201.6 kB / 458.3 MB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4992, allocations: 0 / 458.3 MB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.4994, allocations: 23.98 kB / 458.4 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4994, allocations: 0 / 458.4 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.4994, allocations: 0 / 458.4 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4994, allocations: 0 / 458.4 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4994, allocations: 7.953 kB / 458.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.4999, allocations: 207.3 kB / 458.6 MB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.5, allocations: 81.02 kB / 458.6 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.5, allocations: 0 / 458.6 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.5002, allocations: 11.98 kB / 458.7 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.5002, allocations: 7.953 kB / 458.7 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.5003, allocations: 7.938 kB / 458.7 MB, free: 1.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.5004, allocations: 111.8 kB / 458.8 MB, free: 1.293 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5004, allocations: 0 / 458.8 MB, free: 1.293 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00035/0.5008, allocations: 31.84 kB / 458.8 MB, free: 1.262 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0001474/0.5009, allocations: 103.2 kB / 458.9 MB, free: 1.152 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000452/0.5014, allocations: 79.89 kB / 459 MB, free: 1.074 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5014, allocations: 0 / 459 MB, free: 1.074 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001873/0.5016, allocations: 39.91 kB / 459 MB, free: 1.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.5019, allocations: 4.25 kB / 459 MB, free: 1.031 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007606/0.5026, allocations: 355.4 kB / 459.4 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.503, allocations: 0.708 MB / 460.1 MB, free: 15.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.667e-05/0.503, allocations: 15.38 kB / 460.1 MB, free: 15.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5031, allocations: 0 / 460.1 MB, free: 15.9 MB / 394.7 MB Notification: Performance of Templates: time 0.003991/0.5071, allocations: 1.271 MB / 461.4 MB, free: 14.63 MB / 394.7 MB