Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 71.83 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2654, allocations: 53.32 MB / 432.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00727/0.2727, allocations: 5.11 MB / 437.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004164/0.2768, allocations: 2.179 MB / 439.4 MB, free: 64 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.2773, allocations: 16 kB / 439.4 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003482/0.2808, allocations: 1.404 MB / 440.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.2821, allocations: 428 kB / 441.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.2846, allocations: 1.21 MB / 442.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.2858, allocations: 0.7395 MB / 443.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008837/0.2867, allocations: 0.4988 MB / 443.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005193/0.2872, allocations: 334.8 kB / 444 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005689/0.2878, allocations: 426.3 kB / 444.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.2879, allocations: 68 kB / 444.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.289, allocations: 419.6 kB / 444.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.2892, allocations: 163.4 kB / 445 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003757/0.2895, allocations: 374.2 kB / 445.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.2913, allocations: 1.21 MB / 446.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2913, allocations: 3.938 kB / 446.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2913, allocations: 7.938 kB / 446.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.2913, allocations: 0 / 446.6 MB, free: 8.781 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004704/0.296, allocations: 1.477 MB / 448.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.2961, allocations: 16.02 kB / 448.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002683/0.2988, allocations: 368.1 kB / 448.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.2991, allocations: 248.2 kB / 448.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.141e-05/0.2992, allocations: 66.38 kB / 448.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.2993, allocations: 80.38 kB / 448.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.3011, allocations: 0.88 MB / 449.7 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.3011, allocations: 7.953 kB / 449.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.853e-05/0.3012, allocations: 32 kB / 449.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.3013, allocations: 20 kB / 449.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001896/0.3032, allocations: 0.7847 MB / 450.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004972/0.3081, allocations: 3.026 MB / 453.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.3095, allocations: 0.9538 MB / 454.5 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005274/0.31, allocations: 218.4 kB / 454.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000204/0.3102, allocations: 190.7 kB / 454.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.3103, allocations: 39.12 kB / 455 MB, free: 15.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.805e-06/0.3103, allocations: 0 / 455 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007968/0.3182, allocations: 2.397 MB / 457.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.3183, allocations: 81.67 kB / 457.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.3187, allocations: 307.2 kB / 457.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.3187, allocations: 37.7 kB / 457.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.319, allocations: 375.8 kB / 458.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.3192, allocations: 218.2 kB / 458.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.3194, allocations: 146.5 kB / 458.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3196, allocations: 346.8 kB / 458.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007691/0.3204, allocations: 269.8 kB / 459.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009707/0.3213, allocations: 0.5081 MB / 459.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/0.3232, allocations: 0.7997 MB / 460.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-05/0.3232, allocations: 4 kB / 460.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002452/0.3257, allocations: 0.895 MB / 461.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.3257, allocations: 8 kB / 461.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.3257, allocations: 8 kB / 461.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004002/0.3261, allocations: 73.61 kB / 461.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009447/0.3271, allocations: 199.7 kB / 461.6 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.3302, allocations: 2.865 MB / 464.5 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007654/0.3309, allocations: 55.95 kB / 464.5 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.331, allocations: 39.98 kB / 464.6 MB, free: 5.676 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003868/0.3314, allocations: 217.7 kB / 464.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3316, allocations: 43.72 kB / 464.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.3337, allocations: 0.7389 MB / 465.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3337, allocations: 4 kB / 465.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3337, allocations: 0 / 465.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3337, allocations: 7.984 kB / 465.6 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.3368, allocations: 1.409 MB / 467 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.3368, allocations: 0 / 467 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007029/0.3375, allocations: 135.8 kB / 467.1 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002155/0.3377, allocations: 57.67 kB / 467.2 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.957e-05/0.3378, allocations: 15.94 kB / 467.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.3403, allocations: 2.86 MB / 470 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3403, allocations: 3.984 kB / 470.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.3431, allocations: 1.071 MB / 471.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.3434, allocations: 168.7 kB / 471.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.175e-05/0.3435, allocations: 12 kB / 471.3 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005419/0.344, allocations: 52 kB / 471.4 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3441, allocations: 40.5 kB / 471.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.3442, allocations: 19.98 kB / 471.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.3444, allocations: 211.1 kB / 471.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3444, allocations: 0 / 471.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008086/0.3453, allocations: 175.9 kB / 471.8 MB, free: 14.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (58): * Single equations (assignments): 56 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003221/0.3456, allocations: 167.1 kB / 472 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.3478, allocations: 0.8732 MB / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3478, allocations: 0 / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.3489, allocations: 0.5278 MB / 473.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.3494, allocations: 48.58 kB / 473.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.3524, allocations: 1.203 MB / 474.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006937/0.3531, allocations: 0.881 MB / 475.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003716/0.3534, allocations: 92.5 kB / 475.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3536, allocations: 47.42 kB / 475.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3536, allocations: 0 / 475.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of Templates: time 0.01476/0.3684, allocations: 6.772 MB / 482.4 MB, free: 3.375 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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: 4.733567830175161]