Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 186 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 47.92 kB / 371.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2596, allocations: 52.17 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.009028/0.2686, allocations: 5.946 MB / 429.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00507/0.2737, allocations: 2.261 MB / 432 MB, free: 6.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009894/0.2746, allocations: 20 kB / 432.1 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004618/0.2793, allocations: 1.753 MB / 433.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.2817, allocations: 0.6756 MB / 434.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.2845, allocations: 1.118 MB / 435.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00198/0.2865, allocations: 1.125 MB / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.2879, allocations: 0.8165 MB / 437.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007571/0.2887, allocations: 498.1 kB / 438 MB, free: 216 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007503/0.2894, allocations: 0.5484 MB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.2896, allocations: 100 kB / 438.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009896/0.2905, allocations: 395.6 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.2908, allocations: 251.1 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.2912, allocations: 469.8 kB / 439.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002269/0.2935, allocations: 1.669 MB / 441.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2935, allocations: 0 / 441.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.2935, allocations: 0 / 441.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.673e-05/0.2935, allocations: 0 / 441.4 MB, free: 12.8 MB / 350.1 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.006514/0.3, allocations: 1.972 MB / 443.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3001, allocations: 8.031 kB / 443.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003431/0.3035, allocations: 0.5114 MB / 443.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.3039, allocations: 253 kB / 444.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.304, allocations: 94.95 kB / 444.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/0.3043, allocations: 132.4 kB / 444.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/0.3069, allocations: 1.332 MB / 445.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.254e-05/0.307, allocations: 3.953 kB / 445.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.3071, allocations: 52 kB / 445.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.3071, allocations: 28 kB / 445.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/0.3099, allocations: 1.189 MB / 447 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006685/0.3166, allocations: 3.318 MB / 450.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/0.3188, allocations: 1.15 MB / 451.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.3198, allocations: 455.6 kB / 451.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.3199, allocations: 24.92 kB / 451.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.32, allocations: 51.56 kB / 452 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 4.018e-06/0.32, allocations: 0 / 452 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01122/0.3312, allocations: 3.56 MB / 455.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.3313, allocations: 90.11 kB / 455.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.3318, allocations: 389.4 kB / 456 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.3318, allocations: 45.7 kB / 456.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.3322, allocations: 468.5 kB / 456.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003761/0.3325, allocations: 444.1 kB / 457 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000376/0.3329, allocations: 231.5 kB / 457.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.3331, allocations: 370.8 kB / 457.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.3342, allocations: 443.8 kB / 458 MB, free: 11.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.3356, allocations: 0.7208 MB / 458.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/0.3382, allocations: 1.179 MB / 459.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3382, allocations: 4 kB / 459.9 MB, free: 9.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003312/0.3415, allocations: 1.463 MB / 461.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.3415, allocations: 18.42 kB / 461.4 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3415, allocations: 8 kB / 461.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005559/0.3421, allocations: 197.2 kB / 461.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.3433, allocations: 295.6 kB / 461.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/0.348, allocations: 4.061 MB / 465.9 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009863/0.349, allocations: 83.94 kB / 466 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.3491, allocations: 55.98 kB / 466 MB, free: 3.461 MB / 366.1 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.0004527/0.3495, allocations: 261.5 kB / 466.3 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3497, allocations: 75.45 kB / 466.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003196/0.3529, allocations: 1.347 MB / 467.7 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.3529, allocations: 12 kB / 467.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3529, allocations: 7.938 kB / 467.7 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3529, allocations: 3.984 kB / 467.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.3576, allocations: 2.182 MB / 469.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3576, allocations: 0 / 469.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.3586, allocations: 215.9 kB / 470.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004712/0.3591, allocations: 173.5 kB / 470.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.871e-05/0.3592, allocations: 27.98 kB / 470.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004233/0.3634, allocations: 3.892 MB / 474.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3634, allocations: 4.031 kB / 474.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004359/0.3678, allocations: 1.873 MB / 476.1 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004471/0.3682, allocations: 163.4 kB / 476.3 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.3684, allocations: 27.95 kB / 476.3 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007519/0.3691, allocations: 59.95 kB / 476.3 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.3693, allocations: 96.75 kB / 476.4 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.977e-05/0.3694, allocations: 39.98 kB / 476.5 MB, free: 8.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003639/0.3698, allocations: 255.2 kB / 476.7 MB, free: 8.457 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3698, allocations: 0 / 476.7 MB, free: 8.457 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001321/0.3711, allocations: 296 kB / 477 MB, free: 8.168 MB / 382.1 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.0003889/0.3715, allocations: 179 kB / 477.2 MB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.3749, allocations: 1.383 MB / 478.6 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3749, allocations: 0 / 478.6 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.3767, allocations: 0.831 MB / 479.4 MB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.3773, allocations: 69.05 kB / 479.5 MB, free: 5.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00481/0.3821, allocations: 1.996 MB / 481.5 MB, free: 3.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.3826, allocations: 420.3 kB / 481.9 MB, free: 3.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004235/0.3831, allocations: 95.38 kB / 482 MB, free: 3.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3831, allocations: 0 / 482 MB, free: 3.07 MB / 382.1 MB Notification: Performance of Templates: time 0.03072/0.4138, allocations: 20.05 MB / 0.4903 GB, free: 15.01 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.01863149087876]