Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001358/0.001358, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001386/0.001386, allocations: 180.8 kB / 23.71 MB, free: 4.695 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.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 12.99 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.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.0.0_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.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 47.92 kB / 370.9 MB, free: 9.309 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2367, allocations: 52.18 MB / 423.1 MB, free: 14.64 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006919/0.2436, allocations: 5.11 MB / 428.2 MB, free: 9.508 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003659/0.2472, allocations: 2.098 MB / 430.3 MB, free: 7.398 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.2475, allocations: 16 kB / 430.4 MB, free: 7.383 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003181/0.2507, allocations: 1.423 MB / 431.8 MB, free: 5.957 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.00126/0.2519, allocations: 0.5748 MB / 432.4 MB, free: 5.379 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002102/0.254, allocations: 1.075 MB / 433.4 MB, free: 4.309 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009289/0.2549, allocations: 0.7433 MB / 434.2 MB, free: 3.562 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0008521/0.2558, allocations: 0.5032 MB / 434.7 MB, free: 3.055 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004353/0.2562, allocations: 346.8 kB / 435 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005068/0.2567, allocations: 422.3 kB / 435.4 MB, free: 2.301 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.2568, allocations: 75.94 kB / 435.5 MB, free: 2.227 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007562/0.2576, allocations: 391.6 kB / 435.9 MB, free: 1.844 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.2577, allocations: 159.5 kB / 436 MB, free: 1.688 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003797/0.2581, allocations: 386.1 kB / 436.4 MB, free: 1.309 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001396/0.2595, allocations: 1.195 MB / 437.6 MB, free: 116 kB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2595, allocations: 0 / 437.6 MB, free: 116 kB / 334.1 MB
Notification: Performance of FrontEnd: time 1.112e-06/0.2595, allocations: 0 / 437.6 MB, free: 116 kB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.666e-06/0.2595, allocations: 0 / 437.6 MB, free: 116 kB / 334.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.004483/0.264, allocations: 1.393 MB / 439 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2641, allocations: 8.031 kB / 439 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002718/0.2668, allocations: 388.1 kB / 439.4 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.267, allocations: 202.2 kB / 439.6 MB, free: 14.07 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.088e-05/0.2671, allocations: 66.38 kB / 439.7 MB, free: 14.01 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.2672, allocations: 84.38 kB / 439.7 MB, free: 13.93 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.269, allocations: 0.8722 MB / 440.6 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.269, allocations: 0 / 440.6 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/0.2691, allocations: 39.94 kB / 440.6 MB, free: 13 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/0.2691, allocations: 20 kB / 440.7 MB, free: 12.98 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.271, allocations: 0.8003 MB / 441.5 MB, free: 12.18 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004608/0.2756, allocations: 2.759 MB / 444.2 MB, free: 9.254 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.2769, allocations: 0.5207 MB / 444.7 MB, free: 8.73 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005771/0.2775, allocations: 214.2 kB / 445 MB, free: 8.52 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.295e-05/0.2775, allocations: 24.48 kB / 445 MB, free: 8.496 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.2776, allocations: 39.06 kB / 445 MB, free: 8.449 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=58): time 2.786e-06/0.2776, allocations: 0 / 445 MB, free: 8.449 MB / 350.1 MB
Notification: Performance of matching and sorting (n=61): time 0.008579/0.2861, allocations: 2.198 MB / 447.2 MB, free: 6.207 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.2862, allocations: 89.59 kB / 447.3 MB, free: 6.102 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.2866, allocations: 300.5 kB / 447.6 MB, free: 5.805 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.2866, allocations: 29.7 kB / 447.6 MB, free: 5.77 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.2869, allocations: 375.9 kB / 448 MB, free: 5.395 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.2871, allocations: 226.1 kB / 448.2 MB, free: 5.172 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.2873, allocations: 142.6 kB / 448.4 MB, free: 5.027 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001733/0.2875, allocations: 354.8 kB / 448.7 MB, free: 4.672 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009098/0.2884, allocations: 273.8 kB / 449 MB, free: 4.406 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.2895, allocations: 0.5121 MB / 449.5 MB, free: 3.785 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.2915, allocations: 0.8087 MB / 450.3 MB, free: 2.879 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2915, allocations: 4 kB / 450.3 MB, free: 2.875 MB / 350.1 MB
Notification: Performance of matching and sorting (n=99) (initialization): time 0.002319/0.2938, allocations: 0.9005 MB / 451.2 MB, free: 1.961 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.2938, allocations: 8.562 kB / 451.2 MB, free: 1.953 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.2938, allocations: 8 kB / 451.2 MB, free: 1.945 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002517/0.2941, allocations: 77.64 kB / 451.3 MB, free: 1.863 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009429/0.295, allocations: 207.6 kB / 451.5 MB, free: 1.66 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002324/0.2974, allocations: 2.67 MB / 454.2 MB, free: 14.76 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007237/0.2981, allocations: 63.97 kB / 454.2 MB, free: 14.7 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.081e-05/0.2982, allocations: 39.98 kB / 454.3 MB, free: 14.66 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.000324/0.2985, allocations: 209.6 kB / 454.5 MB, free: 14.44 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.2986, allocations: 39.77 kB / 454.5 MB, free: 14.4 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0022/0.3008, allocations: 0.7491 MB / 455.2 MB, free: 13.64 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3008, allocations: 8 kB / 455.3 MB, free: 13.64 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3008, allocations: 4 kB / 455.3 MB, free: 13.63 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3008, allocations: 3.984 kB / 455.3 MB, free: 13.63 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/0.3038, allocations: 1.383 MB / 456.6 MB, free: 12.19 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3039, allocations: 4 kB / 456.7 MB, free: 12.18 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007741/0.3046, allocations: 143.8 kB / 456.8 MB, free: 12.04 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001733/0.3048, allocations: 53.67 kB / 456.8 MB, free: 11.98 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.3048, allocations: 12 kB / 456.9 MB, free: 11.97 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.3071, allocations: 2.649 MB / 459.5 MB, free: 9.094 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3071, allocations: 0 / 459.5 MB, free: 9.094 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.3101, allocations: 1.086 MB / 460.6 MB, free: 7.988 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.3103, allocations: 91.7 kB / 460.7 MB, free: 7.898 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-05/0.3103, allocations: 19.95 kB / 460.7 MB, free: 7.879 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005571/0.3109, allocations: 47.94 kB / 460.7 MB, free: 7.832 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.311, allocations: 52.41 kB / 460.8 MB, free: 7.781 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-05/0.3111, allocations: 19.98 kB / 460.8 MB, free: 7.762 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002282/0.3113, allocations: 203.1 kB / 461 MB, free: 7.559 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3113, allocations: 0 / 461 MB, free: 7.559 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006992/0.312, allocations: 176 kB / 461.2 MB, free: 7.387 MB / 366.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.0002707/0.3123, allocations: 167 kB / 461.4 MB, free: 7.211 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002227/0.3145, allocations: 0.8847 MB / 462.2 MB, free: 6.309 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3145, allocations: 0 / 462.2 MB, free: 6.309 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001139/0.3156, allocations: 0.5274 MB / 462.8 MB, free: 5.75 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.3161, allocations: 48.81 kB / 462.8 MB, free: 5.703 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.3188, allocations: 1.243 MB / 464.1 MB, free: 4.434 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/0.3194, allocations: 0.8848 MB / 464.9 MB, free: 3.516 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0004026/0.3198, allocations: 96.5 kB / 465 MB, free: 3.418 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.3199, allocations: 51.41 kB / 465.1 MB, free: 3.371 MB / 366.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.3199, allocations: 4 kB / 465.1 MB, free: 3.367 MB / 366.1 MB
Notification: Performance of Templates: time 0.01498/0.3349, allocations: 6.894 MB / 472 MB, free: 12.52 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.618962808512151]