Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001755/0.001755, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002119/0.002119, allocations: 208.9 kB / 23.73 MB, free: 4.523 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.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 51.91 kB / 378.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2508, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004311/0.2551, allocations: 2.642 MB / 434.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2567, allocations: 0.7555 MB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2568, allocations: 8 kB / 435 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.2571, allocations: 67.38 kB / 435 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.2574, allocations: 91.25 kB / 435.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.2577, allocations: 115.7 kB / 435.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.2581, allocations: 390.5 kB / 435.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.2583, allocations: 97.86 kB / 435.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000325/0.2586, allocations: 167.4 kB / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.2589, allocations: 171.2 kB / 436.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.198e-05/0.2589, allocations: 32 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.169e-05/0.259, allocations: 36 kB / 436.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.2591, allocations: 75.69 kB / 436.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.2592, allocations: 143.4 kB / 436.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004628/0.2597, allocations: 402 kB / 436.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2597, allocations: 0 / 436.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2597, allocations: 0 / 436.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2597, allocations: 3.938 kB / 436.7 MB, free: 1.527 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001245/0.2609, allocations: 0.5753 MB / 437.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.261, allocations: 8.031 kB / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.442e-05/0.2611, allocations: 40.7 kB / 437.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.2615, allocations: 226.7 kB / 437.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.2615, allocations: 25.03 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.2615, allocations: 28.38 kB / 437.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006246/0.2622, allocations: 290.4 kB / 437.9 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2622, allocations: 0 / 437.9 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.2622, allocations: 16 kB / 437.9 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.2622, allocations: 11.98 kB / 437.9 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006272/0.2629, allocations: 242.5 kB / 438.2 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.2646, allocations: 0.8743 MB / 439.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.265, allocations: 146.5 kB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.2652, allocations: 68.8 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.2652, allocations: 3.938 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.2653, allocations: 38.56 kB / 439.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.2653, allocations: 4 kB / 439.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002218/0.2675, allocations: 0.5827 MB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.2675, allocations: 55.41 kB / 439.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.2678, allocations: 269.8 kB / 440.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.2679, allocations: 29.7 kB / 440.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.268, allocations: 236 kB / 440.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.426e-05/0.2681, allocations: 83.33 kB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.2682, allocations: 73.42 kB / 440.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2684, allocations: 334.8 kB / 440.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.2687, allocations: 91.94 kB / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003918/0.2691, allocations: 200.1 kB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006613/0.2698, allocations: 301.1 kB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2698, allocations: 0 / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009769/0.2707, allocations: 389 kB / 441.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.2708, allocations: 8 kB / 441.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.2708, allocations: 4 kB / 441.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003278/0.2711, allocations: 66.02 kB / 442 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003668/0.2715, allocations: 75.83 kB / 442.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/0.2737, allocations: 2.588 MB / 444.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.274, allocations: 19.98 kB / 444.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.274, allocations: 16 kB / 444.7 MB, free: 9.062 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001734/0.2742, allocations: 149.7 kB / 444.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.299e-05/0.2743, allocations: 31.75 kB / 444.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.616e-05/0.2743, allocations: 30.27 kB / 444.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2743, allocations: 4 kB / 444.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2744, allocations: 4.062 kB / 444.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2744, allocations: 3.984 kB / 444.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.2747, allocations: 225.2 kB / 445.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2747, allocations: 3.938 kB / 445.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.2749, allocations: 35.97 kB / 445.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001669/0.2751, allocations: 57.61 kB / 445.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2751, allocations: 12 kB / 445.2 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.2772, allocations: 2.58 MB / 447.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2772, allocations: 0 / 447.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.278, allocations: 372 kB / 448.2 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.2781, allocations: 27.8 kB / 448.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.2781, allocations: 7.938 kB / 448.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.2783, allocations: 19.98 kB / 448.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.2784, allocations: 15.95 kB / 448.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.2784, allocations: 11.94 kB / 448.3 MB, free: 5.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.2786, allocations: 181.2 kB / 448.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2786, allocations: 4 kB / 448.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000428/0.279, allocations: 72 kB / 448.5 MB, free: 4.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0001261/0.2792, allocations: 99.23 kB / 448.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2802, allocations: 473.2 kB / 449.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2802, allocations: 0 / 449.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005549/0.2807, allocations: 346 kB / 449.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.2811, allocations: 32.42 kB / 449.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.2822, allocations: 0.5424 MB / 450 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/0.2824, allocations: 172.8 kB / 450.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.2825, allocations: 30.2 kB / 450.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.92e-05/0.2826, allocations: 23.44 kB / 450.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2826, allocations: 0 / 450.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of Templates: time 0.007692/0.2903, allocations: 3.18 MB / 453.4 MB, free: 24 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.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.614511895924807]