Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 43.92 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2636, allocations: 53.38 MB / 432.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.0089/0.2725, allocations: 5.939 MB / 438.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00499/0.2775, allocations: 2.323 MB / 440.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006574/0.2782, allocations: 24 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004517/0.2827, allocations: 1.738 MB / 442.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.2846, allocations: 0.5434 MB / 442.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003064/0.2877, allocations: 1.258 MB / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.2893, allocations: 1.109 MB / 445.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.2906, allocations: 0.8172 MB / 446.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007217/0.2913, allocations: 498.1 kB / 446.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007371/0.2921, allocations: 0.5522 MB / 447.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.2922, allocations: 100 kB / 447.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.2932, allocations: 423.7 kB / 447.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.2935, allocations: 247.1 kB / 447.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004827/0.2939, allocations: 461.8 kB / 448.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002105/0.296, allocations: 1.684 MB / 450 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2961, allocations: 0 / 450 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2961, allocations: 0 / 450 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.2961, allocations: 0 / 450 MB, free: 4.953 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.006571/0.3026, allocations: 1.982 MB / 452 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.3027, allocations: 8.031 kB / 452 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003607/0.3063, allocations: 495.8 kB / 452.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.3067, allocations: 256.8 kB / 452.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.3068, allocations: 94.95 kB / 452.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.3071, allocations: 136.3 kB / 453 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.3096, allocations: 1.325 MB / 454.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.146e-05/0.3096, allocations: 3.984 kB / 454.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.3098, allocations: 56 kB / 454.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.3098, allocations: 35.98 kB / 454.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.3124, allocations: 1.177 MB / 455.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.319, allocations: 3.349 MB / 458.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.3212, allocations: 1.135 MB / 460.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009443/0.3222, allocations: 452.7 kB / 460.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001343/0.3223, allocations: 44.91 kB / 460.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.3224, allocations: 47.56 kB / 460.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.336e-06/0.3224, allocations: 0 / 460.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.0108/0.3332, allocations: 3.54 MB / 464.1 MB, free: 6.602 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.3332, allocations: 94.09 kB / 464.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.3337, allocations: 385.3 kB / 464.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/0.3338, allocations: 45.7 kB / 464.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.3341, allocations: 468.5 kB / 465.1 MB, free: 5.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.3345, allocations: 444.2 kB / 465.5 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/0.3349, allocations: 235.5 kB / 465.8 MB, free: 4.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.3351, allocations: 374.7 kB / 466.1 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.3361, allocations: 431.8 kB / 466.6 MB, free: 4.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.3374, allocations: 0.7169 MB / 467.3 MB, free: 3.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.3399, allocations: 1.179 MB / 468.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3399, allocations: 0 / 468.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003272/0.3432, allocations: 1.463 MB / 469.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.3432, allocations: 11.94 kB / 469.9 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.3432, allocations: 11.94 kB / 469.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005863/0.3438, allocations: 199.9 kB / 470.1 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.345, allocations: 287.6 kB / 470.4 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/0.3498, allocations: 4.064 MB / 474.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009344/0.3508, allocations: 79.97 kB / 474.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.421e-05/0.3509, allocations: 55.98 kB / 474.6 MB, free: 11.64 MB / 382.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.0004715/0.3513, allocations: 277.4 kB / 474.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.3515, allocations: 67.58 kB / 475 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003179/0.3547, allocations: 1.323 MB / 476.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.3547, allocations: 12 kB / 476.3 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3547, allocations: 4 kB / 476.3 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.3547, allocations: 7.969 kB / 476.3 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004584/0.3593, allocations: 2.178 MB / 478.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3593, allocations: 4 kB / 478.5 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009648/0.3603, allocations: 211.9 kB / 478.7 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004579/0.3607, allocations: 169.5 kB / 478.9 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.931e-05/0.3608, allocations: 27.98 kB / 478.9 MB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004179/0.365, allocations: 3.897 MB / 482.8 MB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.365, allocations: 4 kB / 482.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00405/0.369, allocations: 1.865 MB / 484.6 MB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.3694, allocations: 151.5 kB / 484.8 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.994e-05/0.3695, allocations: 28.06 kB / 484.8 MB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.3702, allocations: 56.06 kB / 484.9 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.3704, allocations: 100.7 kB / 485 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.3704, allocations: 39.98 kB / 485 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002999/0.3707, allocations: 251.2 kB / 485.3 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3707, allocations: 0 / 485.3 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001135/0.3719, allocations: 311.9 kB / 485.6 MB, free: 384 kB / 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.0002989/0.3722, allocations: 179 kB / 485.7 MB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003052/0.3752, allocations: 1.384 MB / 487.1 MB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3752, allocations: 3.938 kB / 487.1 MB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.3768, allocations: 0.8154 MB / 487.9 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.3773, allocations: 65.44 kB / 488 MB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.3814, allocations: 1.926 MB / 489.9 MB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.3819, allocations: 416.3 kB / 490.3 MB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003536/0.3822, allocations: 99.39 kB / 490.4 MB, free: 11.36 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3822, allocations: 0 / 490.4 MB, free: 11.36 MB / 398.1 MB Notification: Performance of Templates: time 0.02665/0.4089, allocations: 20.56 MB / 0.499 GB, free: 6.785 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.205788461025804]