Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 225.7 MB / 243.2 MB, free: 8.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007248/0.0007248, allocations: 86.34 kB / 294.3 MB, free: 9.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002149/0.0002149, allocations: 4 kB / 354.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2269, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003562/0.2305, allocations: 4.33 MB / 408.9 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.233, allocations: 3.171 MB / 412.1 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.2332, allocations: 16.94 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.2337, allocations: 306.8 kB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009338/0.2346, allocations: 0.8765 MB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.2362, allocations: 2.046 MB / 415.3 MB, free: 19.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005055/0.2367, allocations: 0.7043 MB / 416 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.2384, allocations: 2.114 MB / 418.1 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.2387, allocations: 274.9 kB / 418.4 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.239, allocations: 382.4 kB / 418.8 MB, free: 16.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.239, allocations: 36 kB / 418.8 MB, free: 16.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005182/0.2396, allocations: 347.6 kB / 419.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.009e-05/0.2396, allocations: 119.5 kB / 419.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.2398, allocations: 367.8 kB / 419.6 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007633/0.2406, allocations: 1.134 MB / 420.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2406, allocations: 0 / 420.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2406, allocations: 0 / 420.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.2406, allocations: 0 / 420.8 MB, free: 14.2 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003388/0.244, allocations: 1.33 MB / 422.1 MB, free: 12.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2441, allocations: 12.03 kB / 422.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.2464, allocations: 387.6 kB / 422.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.2466, allocations: 256.1 kB / 422.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.579e-05/0.2466, allocations: 62.38 kB / 422.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2467, allocations: 80.38 kB / 422.9 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.2481, allocations: 0.8878 MB / 423.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.2482, allocations: 0 / 423.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.537e-05/0.2482, allocations: 36 kB / 423.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.2483, allocations: 20 kB / 423.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.2497, allocations: 0.8238 MB / 424.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003169/0.2529, allocations: 2.969 MB / 427.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.2538, allocations: 1.015 MB / 428.6 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004429/0.2543, allocations: 250.4 kB / 428.9 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.692e-05/0.2544, allocations: 101.6 kB / 429 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.2544, allocations: 43.06 kB / 429 MB, free: 5.508 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.734e-06/0.2544, allocations: 3.938 kB / 429 MB, free: 5.504 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.006757/0.2612, allocations: 2.689 MB / 431.7 MB, free: 2.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.2612, allocations: 85.67 kB / 431.8 MB, free: 2.621 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.2615, allocations: 295.2 kB / 432.1 MB, free: 2.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.2615, allocations: 37.7 kB / 432.1 MB, free: 2.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2616, allocations: 362.6 kB / 432.5 MB, free: 1.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.322e-05/0.2617, allocations: 216.9 kB / 432.7 MB, free: 1.703 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.2618, allocations: 16 kB / 432.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.236e-05/0.2618, allocations: 346.8 kB / 433 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006882/0.2625, allocations: 289.8 kB / 433.3 MB, free: 1.059 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000743/0.2633, allocations: 0.5277 MB / 433.8 MB, free: 436 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.2649, allocations: 0.8622 MB / 434.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2649, allocations: 0 / 434.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002091/0.267, allocations: 0.9377 MB / 435.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.267, allocations: 8 kB / 435.7 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.267, allocations: 11.98 kB / 435.7 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.2673, allocations: 69.62 kB / 435.7 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008388/0.2681, allocations: 211.7 kB / 435.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.2701, allocations: 2.659 MB / 438.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006815/0.2708, allocations: 75.92 kB / 438.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/0.2709, allocations: 39.98 kB / 438.7 MB, free: 11.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002935/0.2712, allocations: 221.5 kB / 438.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.586e-05/0.2712, allocations: 39.53 kB / 439 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.2731, allocations: 0.7936 MB / 439.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.2731, allocations: 8 kB / 439.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2732, allocations: 0 / 439.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.2732, allocations: 3.984 kB / 439.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.2758, allocations: 1.473 MB / 441.2 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2758, allocations: 0 / 441.2 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006501/0.2764, allocations: 147.8 kB / 441.4 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001694/0.2766, allocations: 65.55 kB / 441.5 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.034e-05/0.2767, allocations: 15.98 kB / 441.5 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001534/0.2782, allocations: 2.636 MB / 444.1 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2782, allocations: 3.938 kB / 444.1 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.2807, allocations: 1.164 MB / 445.3 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.2809, allocations: 156.6 kB / 445.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.26e-05/0.281, allocations: 12 kB / 445.4 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/0.2815, allocations: 68 kB / 445.5 MB, free: 3.977 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.2816, allocations: 44.44 kB / 445.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.2817, allocations: 19.98 kB / 445.6 MB, free: 3.914 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002105/0.2819, allocations: 207.1 kB / 445.8 MB, free: 3.711 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2819, allocations: 3.938 kB / 445.8 MB, free: 3.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006836/0.2826, allocations: 176 kB / 445.9 MB, free: 3.535 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002409/0.2828, allocations: 167.3 kB / 446.1 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.2849, allocations: 0.9554 MB / 447.1 MB, free: 2.383 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2849, allocations: 3.938 kB / 447.1 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.2859, allocations: 0.5746 MB / 447.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.2863, allocations: 40.59 kB / 447.7 MB, free: 1.738 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.2888, allocations: 1.626 MB / 449.3 MB, free: 92 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.2893, allocations: 0.881 MB / 450.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004864/0.2898, allocations: 96.52 kB / 450.3 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.2899, allocations: 51.34 kB / 450.3 MB, free: 15.04 MB / 330.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2899, allocations: 4 kB / 450.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of Templates: time 0.01057/0.3005, allocations: 5.94 MB / 456.3 MB, free: 9.094 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches