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.QuadraticCoreAirgap.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.QuadraticCoreAirgap,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.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,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.QuadraticCoreAirgap") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001488, allocations: 181.8 kB / 16.71 MB, free: 4.844 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.256/1.256, allocations: 225.7 MB / 243.2 MB, free: 10.22 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.0007085/0.0007086, allocations: 102.9 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.000224, allocations: 8 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1772, allocations: 50.4 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004229/0.1815, allocations: 5.78 MB / 410.4 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002836/0.1844, allocations: 3.475 MB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002882/0.1847, allocations: 24 kB / 413.9 MB, free: 21.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005756/0.1853, allocations: 370.5 kB / 414.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.1864, allocations: 0.9986 MB / 415.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.1882, allocations: 2.147 MB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007527/0.1889, allocations: 1.074 MB / 418.4 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002331/0.1913, allocations: 2.98 MB / 421.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.1916, allocations: 414.2 kB / 421.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003782/0.192, allocations: 0.5483 MB / 422.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.356e-05/0.1921, allocations: 52 kB / 422.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006025/0.1927, allocations: 363.6 kB / 422.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-05/0.1928, allocations: 199.1 kB / 423 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002834/0.1931, allocations: 0.5223 MB / 423.5 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009393/0.1941, allocations: 1.566 MB / 425.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1941, allocations: 0 / 425.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1941, allocations: 0 / 425.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1941, allocations: 0 / 425.1 MB, free: 9.844 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.004724/0.1988, allocations: 1.823 MB / 426.9 MB, free: 7.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1989, allocations: 12.03 kB / 426.9 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/0.202, allocations: 0.5147 MB / 427.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.2023, allocations: 310.7 kB / 427.7 MB, free: 7.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.061e-05/0.2023, allocations: 98.95 kB / 427.8 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.2025, allocations: 132.3 kB / 427.9 MB, free: 6.871 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.2044, allocations: 1.304 MB / 429.2 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.792e-05/0.2045, allocations: 4 kB / 429.3 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.202e-05/0.2046, allocations: 55.98 kB / 429.3 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.2046, allocations: 28 kB / 429.3 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001994/0.2066, allocations: 1.228 MB / 430.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.2114, allocations: 4.236 MB / 434.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.2136, allocations: 2.448 MB / 437.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008606/0.2145, allocations: 0.5122 MB / 437.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.2146, allocations: 110.1 kB / 437.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.2146, allocations: 43.56 kB / 437.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 4.058e-06/0.2146, allocations: 0 / 437.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.009958/0.2246, allocations: 4.061 MB / 442 MB, free: 8.195 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.2247, allocations: 90.11 kB / 442.1 MB, free: 8.086 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.2251, allocations: 385.5 kB / 442.4 MB, free: 7.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.2251, allocations: 53.7 kB / 442.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.2254, allocations: 451 kB / 442.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.2256, allocations: 425.7 kB / 443.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.2257, allocations: 24 kB / 443.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.2258, allocations: 370.8 kB / 443.7 MB, free: 6.379 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.2268, allocations: 459.8 kB / 444.2 MB, free: 5.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.228, allocations: 0.7114 MB / 444.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/0.2302, allocations: 1.218 MB / 446.1 MB, free: 3.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.2303, allocations: 8 kB / 446.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002798/0.2331, allocations: 1.509 MB / 447.6 MB, free: 2.273 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.2331, allocations: 8 kB / 447.6 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.2331, allocations: 8 kB / 447.6 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005063/0.2336, allocations: 201.6 kB / 447.8 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.2348, allocations: 303.6 kB / 448.1 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.2384, allocations: 3.955 MB / 452.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008269/0.2393, allocations: 92 kB / 452.2 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.611e-05/0.2394, allocations: 55.98 kB / 452.2 MB, free: 13.39 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003911/0.2398, allocations: 277.3 kB / 452.5 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.2399, allocations: 71.33 kB / 452.6 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002811/0.2427, allocations: 1.386 MB / 454 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.2427, allocations: 15.94 kB / 454 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2427, allocations: 4 kB / 454 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.2428, allocations: 7.969 kB / 454 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/0.247, allocations: 2.664 MB / 456.6 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.247, allocations: 8.031 kB / 456.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009315/0.248, allocations: 219.7 kB / 456.9 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.2483, allocations: 173.5 kB / 457 MB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.954e-05/0.2484, allocations: 27.98 kB / 457.1 MB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003117/0.2516, allocations: 3.779 MB / 460.8 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.2516, allocations: 8 kB / 460.9 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003527/0.2551, allocations: 1.933 MB / 462.8 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.2554, allocations: 224.1 kB / 463 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/0.2555, allocations: 24.09 kB / 463 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/0.2561, allocations: 75.95 kB / 463.1 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.2563, allocations: 96.8 kB / 463.2 MB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.175e-05/0.2564, allocations: 35.98 kB / 463.2 MB, free: 1.922 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002811/0.2567, allocations: 267.2 kB / 463.5 MB, free: 1.664 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2567, allocations: 0 / 463.5 MB, free: 1.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009153/0.2576, allocations: 308.1 kB / 463.8 MB, free: 1.363 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002484/0.2579, allocations: 183 kB / 464 MB, free: 1.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002806/0.2607, allocations: 1.485 MB / 465.5 MB, free: 15.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2607, allocations: 0 / 465.5 MB, free: 15.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.2621, allocations: 0.8895 MB / 466.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.2626, allocations: 65.56 kB / 466.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.2664, allocations: 2.506 MB / 468.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.267, allocations: 1.013 MB / 469.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007693/0.2677, allocations: 150.8 kB / 470.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.268, allocations: 71.41 kB / 470.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.268, allocations: 7.938 kB / 470.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of Templates: time 0.01575/0.2838, allocations: 9.588 MB / 479.7 MB, free: 1.293 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches