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.001396/0.001396, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001474/0.001474, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.422/1.422, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.001566/0.001566, allocations: 47.92 kB / 371.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2529, allocations: 52.18 MB / 423.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008926/0.2618, allocations: 6.774 MB / 430.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004966/0.2668, allocations: 2.425 MB / 433.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006543/0.2674, allocations: 20 kB / 433.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004468/0.2719, allocations: 1.885 MB / 435 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002294/0.2742, allocations: 0.7067 MB / 435.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.2769, allocations: 1.187 MB / 436.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.2786, allocations: 1.121 MB / 438 MB, free: 480 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.28, allocations: 0.8424 MB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006877/0.2807, allocations: 498.1 kB / 439.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007725/0.2814, allocations: 0.6186 MB / 440 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.2816, allocations: 100 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009443/0.2825, allocations: 427.6 kB / 440.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.2827, allocations: 251 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.2833, allocations: 0.5558 MB / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002044/0.2853, allocations: 1.661 MB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2853, allocations: 0 / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2853, allocations: 0 / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.2853, allocations: 0 / 442.9 MB, free: 11.5 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.006407/0.2917, allocations: 1.98 MB / 444.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2918, allocations: 8.031 kB / 444.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003576/0.2954, allocations: 0.5114 MB / 445.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.2957, allocations: 253 kB / 445.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.2958, allocations: 94.95 kB / 445.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.2961, allocations: 132.4 kB / 445.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/0.2986, allocations: 1.296 MB / 447.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.004e-05/0.2987, allocations: 7.953 kB / 447.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.2988, allocations: 55.94 kB / 447.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.024e-05/0.2988, allocations: 32 kB / 447.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002593/0.3014, allocations: 1.193 MB / 448.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006956/0.3084, allocations: 4.001 MB / 452.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.3105, allocations: 1.153 MB / 453.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3115, allocations: 463.6 kB / 454.1 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.3116, allocations: 28.97 kB / 454.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.011e-05/0.3117, allocations: 47.55 kB / 454.2 MB, free: 16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.467e-06/0.3117, allocations: 0 / 454.2 MB, free: 16 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01158/0.3233, allocations: 3.56 MB / 457.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/0.3234, allocations: 102 kB / 457.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.3239, allocations: 385.5 kB / 458.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.178e-05/0.324, allocations: 45.7 kB / 458.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.3243, allocations: 476.5 kB / 458.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/0.3247, allocations: 440.1 kB / 459.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.325, allocations: 235.5 kB / 459.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3252, allocations: 370.8 kB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.3263, allocations: 439.8 kB / 460.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3277, allocations: 0.6957 MB / 460.9 MB, free: 9.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002507/0.3302, allocations: 1.175 MB / 462 MB, free: 7.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3302, allocations: 0 / 462 MB, free: 7.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003257/0.3335, allocations: 1.478 MB / 463.5 MB, free: 6.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.3335, allocations: 11.28 kB / 463.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/0.3335, allocations: 8 kB / 463.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005745/0.3341, allocations: 196 kB / 463.7 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.3354, allocations: 295.6 kB / 464 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004646/0.3401, allocations: 4.162 MB / 468.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009691/0.3411, allocations: 83.89 kB / 468.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.604e-05/0.3411, allocations: 51.98 kB / 468.3 MB, free: 1.328 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.0004564/0.3416, allocations: 265.6 kB / 468.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3417, allocations: 71.58 kB / 468.6 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.345, allocations: 1.343 MB / 470 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.345, allocations: 12 kB / 470 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.345, allocations: 7.938 kB / 470 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.345, allocations: 7.969 kB / 470 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004951/0.35, allocations: 2.578 MB / 472.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.35, allocations: 7.938 kB / 472.6 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.351, allocations: 219.8 kB / 472.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004565/0.3515, allocations: 157.6 kB / 473 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/0.3515, allocations: 31.98 kB / 473 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004291/0.3558, allocations: 3.981 MB / 477 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/0.3558, allocations: 11.92 kB / 477 MB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/0.3599, allocations: 1.865 MB / 478.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004055/0.3604, allocations: 155.4 kB / 479 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.3605, allocations: 24 kB / 479 MB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007324/0.3612, allocations: 63.94 kB / 479.1 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.3614, allocations: 96.88 kB / 479.2 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.291e-05/0.3615, allocations: 35.98 kB / 479.2 MB, free: 6.039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003338/0.3618, allocations: 267.2 kB / 479.5 MB, free: 5.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3618, allocations: 0 / 479.5 MB, free: 5.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00114/0.3629, allocations: 300 kB / 479.8 MB, free: 5.484 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.0003269/0.3633, allocations: 179 kB / 479.9 MB, free: 5.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003255/0.3665, allocations: 1.391 MB / 481.3 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3665, allocations: 0 / 481.3 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.3682, allocations: 0.8233 MB / 482.2 MB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005759/0.3688, allocations: 65.94 kB / 482.2 MB, free: 2.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.3733, allocations: 2.012 MB / 484.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.374, allocations: 1.005 MB / 485.2 MB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/0.3745, allocations: 95.38 kB / 485.3 MB, free: 15.78 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3745, allocations: 4 kB / 485.3 MB, free: 15.78 MB / 398.1 MB Notification: Performance of Templates: time 0.0265/0.401, allocations: 19.69 MB / 0.4932 GB, free: 12.08 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: 7.9551146409939975]