Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.159/2.159, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007241/0.0007243, allocations: 16 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3121, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sensors): time 0.002443/0.3146, allocations: 1.501 MB / 370.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.3157, allocations: 0.5469 MB / 371.2 MB, free: 8.641 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.607e-05/0.3158, allocations: 4 kB / 371.2 MB, free: 8.637 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.3159, allocations: 23.84 kB / 371.3 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.3161, allocations: 35.92 kB / 371.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.3162, allocations: 27.97 kB / 371.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.3164, allocations: 95.77 kB / 371.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.3166, allocations: 49.77 kB / 371.5 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.3167, allocations: 51.8 kB / 371.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.843e-05/0.3169, allocations: 51.77 kB / 371.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.3169, allocations: 11.94 kB / 371.6 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.732e-05/0.3169, allocations: 8 kB / 371.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.069e-05/0.317, allocations: 19.92 kB / 371.6 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.008e-05/0.317, allocations: 49.64 kB / 371.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.3172, allocations: 116.4 kB / 371.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.063e-06/0.3172, allocations: 0 / 371.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3173, allocations: 3.938 kB / 371.8 MB, free: 8.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.853e-06/0.3173, allocations: 0 / 371.8 MB, free: 8.09 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006732/0.318, allocations: 435 kB / 372.2 MB, free: 7.617 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.318, allocations: 8.031 kB / 372.2 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.3181, allocations: 15.81 kB / 372.2 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.3183, allocations: 194.9 kB / 372.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.3184, allocations: 12.28 kB / 372.4 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.3184, allocations: 15.94 kB / 372.4 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.3188, allocations: 147.8 kB / 372.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3188, allocations: 0 / 372.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.3189, allocations: 7.953 kB / 372.6 MB, free: 7.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.3189, allocations: 4 kB / 372.6 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003787/0.3193, allocations: 116.1 kB / 372.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.3206, allocations: 0.6223 MB / 373.3 MB, free: 6.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.3209, allocations: 70.58 kB / 373.4 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.3209, allocations: 0 / 373.4 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.321, allocations: 42.59 kB / 373.4 MB, free: 6.242 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 2.033e-06/0.321, allocations: 0 / 373.4 MB, free: 6.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004897/0.3215, allocations: 125.6 kB / 373.6 MB, free: 6.113 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3215, allocations: 55.41 kB / 373.6 MB, free: 6.047 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.3217, allocations: 150.3 kB / 373.8 MB, free: 5.891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3218, allocations: 25.7 kB / 373.8 MB, free: 5.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3219, allocations: 201.9 kB / 374 MB, free: 5.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.3219, allocations: 11.81 kB / 374 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-06/0.322, allocations: 0 / 374 MB, free: 5.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3221, allocations: 322.8 kB / 374.3 MB, free: 5.324 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.3223, allocations: 31.98 kB / 374.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.3225, allocations: 68.27 kB / 374.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.3226, allocations: 47.92 kB / 374.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.516e-06/0.3226, allocations: 0 / 374.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004382/0.3231, allocations: 141.7 kB / 374.6 MB, free: 5.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3231, allocations: 4 kB / 374.6 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.637e-06/0.3231, allocations: 4 kB / 374.6 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3232, allocations: 3.938 kB / 374.6 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.3234, allocations: 31.98 kB / 374.6 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.865e-06/0.3234, allocations: 3.984 kB / 374.6 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.3235, allocations: 31.81 kB / 374.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3236, allocations: 0 / 374.7 MB, free: 4.941 MB / 298.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.0001342/0.3237, allocations: 125.8 kB / 374.8 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.3238, allocations: 15.84 kB / 374.8 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.313e-05/0.3238, allocations: 8.312 kB / 374.8 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.204e-06/0.3238, allocations: 4 kB / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.171e-06/0.3238, allocations: 0 / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.531e-06/0.3238, allocations: 0 / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.3241, allocations: 205.6 kB / 375 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-06/0.3242, allocations: 4 kB / 375 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.3243, allocations: 19.98 kB / 375 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.801e-06/0.3243, allocations: 3.953 kB / 375.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.931e-06/0.3243, allocations: 0 / 375.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.3243, allocations: 0 / 375.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.622e-06/0.3244, allocations: 0 / 375.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.3247, allocations: 195.4 kB / 375.2 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/0.3248, allocations: 88.95 kB / 375.3 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.3248, allocations: 3.953 kB / 375.3 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.325, allocations: 11.98 kB / 375.3 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.3251, allocations: 7.922 kB / 375.4 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.063e-06/0.3251, allocations: 8 kB / 375.4 MB, free: 4.164 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.3252, allocations: 110.5 kB / 375.5 MB, free: 4.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.66e-07/0.3252, allocations: 0 / 375.5 MB, free: 4.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000345/0.3256, allocations: 23.91 kB / 375.5 MB, free: 4.035 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: 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.0001151/0.3257, allocations: 100.2 kB / 375.6 MB, free: 3.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003286/0.326, allocations: 83.88 kB / 375.7 MB, free: 3.844 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.652e-06/0.3261, allocations: 0 / 375.7 MB, free: 3.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3262, allocations: 31.98 kB / 375.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.3264, allocations: 4 kB / 375.7 MB, free: 3.809 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.3271, allocations: 363.5 kB / 376.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.3275, allocations: 0.708 MB / 376.8 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.3276, allocations: 11.44 kB / 376.8 MB, free: 2.676 MB / 298.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3276, allocations: 0 / 376.8 MB, free: 2.676 MB / 298.7 MB Notification: Performance of Templates: time 0.003199/0.3308, allocations: 1.215 MB / 378 MB, free: 1.461 MB / 298.7 MB