Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.00155, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 229.5 MB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007832/0.0007834, allocations: 96 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002205/0.0002206, allocations: 4 kB / 360.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1957, allocations: 51.4 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004621/0.2004, allocations: 5.796 MB / 417.9 MB, free: 20.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00362/0.204, allocations: 3.917 MB / 421.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007991/0.2049, allocations: 23.94 kB / 421.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.2059, allocations: 370.5 kB / 422.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.2074, allocations: 0.6325 MB / 422.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.2096, allocations: 2.448 MB / 425.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000966/0.2106, allocations: 1.07 MB / 426.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002622/0.2133, allocations: 2.988 MB / 429.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004643/0.2137, allocations: 422.2 kB / 429.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004134/0.2142, allocations: 0.5444 MB / 430.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.862e-05/0.2142, allocations: 55.98 kB / 430.3 MB, free: 6.535 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008333/0.2151, allocations: 379.6 kB / 430.7 MB, free: 6.164 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.2152, allocations: 191.1 kB / 430.9 MB, free: 5.977 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.2155, allocations: 0.5223 MB / 431.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.2167, allocations: 1.59 MB / 433 MB, free: 3.852 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2167, allocations: 0 / 433 MB, free: 3.852 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2167, allocations: 3.938 kB / 433 MB, free: 3.848 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.2168, allocations: 7.938 kB / 433 MB, free: 3.84 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.005231/0.222, allocations: 1.827 MB / 434.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2221, allocations: 16.03 kB / 434.8 MB, free: 1.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003871/0.2259, allocations: 0.5147 MB / 435.3 MB, free: 1.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.2262, allocations: 306.8 kB / 435.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.339e-05/0.2263, allocations: 94.95 kB / 435.7 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.2266, allocations: 132.3 kB / 435.9 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.2288, allocations: 1.304 MB / 437.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.2289, allocations: 7.984 kB / 437.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.229, allocations: 48 kB / 437.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.229, allocations: 36 kB / 437.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002442/0.2315, allocations: 1.216 MB / 438.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006502/0.238, allocations: 4.327 MB / 442.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002334/0.2403, allocations: 2.445 MB / 445.3 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008751/0.2412, allocations: 0.5119 MB / 445.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001786/0.2414, allocations: 195.2 kB / 446 MB, free: 6.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.2415, allocations: 43.56 kB / 446 MB, free: 6.145 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 2.955e-06/0.2415, allocations: 0 / 446 MB, free: 6.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.0108/0.2523, allocations: 4.053 MB / 450 MB, free: 2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.2524, allocations: 94.09 kB / 450.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.2528, allocations: 385.5 kB / 450.5 MB, free: 1.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.2528, allocations: 45.7 kB / 450.6 MB, free: 1.453 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.2531, allocations: 454.9 kB / 451 MB, free: 1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.2534, allocations: 421.9 kB / 451.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-05/0.2534, allocations: 27.94 kB / 451.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2536, allocations: 378.8 kB / 451.8 MB, free: 180 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.2546, allocations: 455.8 kB / 452.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.2562, allocations: 0.7114 MB / 453 MB, free: 14.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.2584, allocations: 1.222 MB / 454.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.2584, allocations: 4 kB / 454.2 MB, free: 13.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003016/0.2615, allocations: 1.513 MB / 455.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.2615, allocations: 12 kB / 455.7 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2615, allocations: 8 kB / 455.7 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005233/0.262, allocations: 201.5 kB / 455.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.2633, allocations: 299.6 kB / 456.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003887/0.2672, allocations: 3.963 MB / 460.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009549/0.2682, allocations: 92 kB / 460.3 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.615e-05/0.2683, allocations: 51.98 kB / 460.3 MB, free: 7.184 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.0004392/0.2687, allocations: 284 kB / 460.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.2689, allocations: 67.16 kB / 460.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/0.2719, allocations: 1.406 MB / 462.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.2719, allocations: 12 kB / 462.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2719, allocations: 4 kB / 462.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.2719, allocations: 7.969 kB / 462.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.2764, allocations: 2.653 MB / 464.7 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2764, allocations: 0 / 464.7 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000979/0.2774, allocations: 231.8 kB / 465 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004221/0.2778, allocations: 165.5 kB / 465.1 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/0.2779, allocations: 27.98 kB / 465.2 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00333/0.2813, allocations: 3.787 MB / 468.9 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2813, allocations: 0 / 468.9 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003823/0.2851, allocations: 1.933 MB / 470.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.2855, allocations: 228.2 kB / 471.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.823e-05/0.2856, allocations: 20 kB / 471.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006795/0.2863, allocations: 80 kB / 471.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.2865, allocations: 88.81 kB / 471.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.241e-05/0.2866, allocations: 39.97 kB / 471.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002786/0.2868, allocations: 263.5 kB / 471.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2869, allocations: 0 / 471.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001005/0.2879, allocations: 304 kB / 471.9 MB, free: 11.16 MB / 346.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.0002795/0.2882, allocations: 187 kB / 472.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002971/0.2911, allocations: 1.497 MB / 473.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2912, allocations: 0 / 473.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.2927, allocations: 0.8934 MB / 474.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006096/0.2933, allocations: 69.56 kB / 474.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.2975, allocations: 2.496 MB / 477 MB, free: 5.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.298, allocations: 1.009 MB / 478 MB, free: 4.895 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008117/0.2988, allocations: 150.6 kB / 478.2 MB, free: 4.742 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.2991, allocations: 71.41 kB / 478.2 MB, free: 4.672 MB / 346.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2991, allocations: 4 kB / 478.2 MB, free: 4.668 MB / 346.7 MB Notification: Performance of Templates: time 0.02176/0.3208, allocations: 9.647 MB / 487.9 MB, free: 11.02 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches