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.00187/0.00187, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.002057/0.002057, allocations: 187.5 kB / 24.45 MB, free: 3.867 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.448/1.448, allocations: 225.7 MB / 253.3 MB, free: 12.84 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.00165/0.00165, allocations: 56 kB / 371.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2546, allocations: 52.18 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007105/0.2617, allocations: 4.549 MB / 428.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.2657, allocations: 1.946 MB / 430.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.2661, allocations: 16 kB / 430.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003359/0.2694, allocations: 1.305 MB / 431.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001551/0.271, allocations: 0.5515 MB / 432.2 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.2733, allocations: 1.003 MB / 433.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.2743, allocations: 0.7434 MB / 434 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009573/0.2753, allocations: 0.5664 MB / 434.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.2758, allocations: 338.8 kB / 434.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005063/0.2763, allocations: 382.3 kB / 435.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.2764, allocations: 68 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008553/0.2772, allocations: 363.6 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.2774, allocations: 167.4 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003169/0.2777, allocations: 310.6 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001663/0.2794, allocations: 1.202 MB / 437.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2794, allocations: 0 / 437.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2794, allocations: 0 / 437.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.2794, allocations: 0 / 437.3 MB, free: 0.9688 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004513/0.2839, allocations: 1.39 MB / 438.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.284, allocations: 8.031 kB / 438.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002589/0.2865, allocations: 384 kB / 439.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.2868, allocations: 202.2 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.878e-05/0.2869, allocations: 66.36 kB / 439.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.287, allocations: 80.38 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.2889, allocations: 0.9012 MB / 440.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/0.2889, allocations: 3.938 kB / 440.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.611e-05/0.289, allocations: 36 kB / 440.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.2891, allocations: 20 kB / 440.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.291, allocations: 0.7964 MB / 441.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.2955, allocations: 2.289 MB / 443.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.2967, allocations: 0.5133 MB / 444 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005476/0.2972, allocations: 222.2 kB / 444.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.457e-05/0.2973, allocations: 16.48 kB / 444.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.2973, allocations: 39.06 kB / 444.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.515e-06/0.2973, allocations: 0 / 444.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008324/0.3057, allocations: 2.198 MB / 446.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.3057, allocations: 85.61 kB / 446.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.3061, allocations: 304 kB / 446.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/0.3062, allocations: 41.64 kB / 446.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.3065, allocations: 375.8 kB / 447.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.3067, allocations: 218.1 kB / 447.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/0.3069, allocations: 146.6 kB / 447.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3071, allocations: 346.8 kB / 447.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000822/0.3079, allocations: 273.8 kB / 448.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.309, allocations: 0.5294 MB / 448.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.311, allocations: 0.8165 MB / 449.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.311, allocations: 4 kB / 449.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002345/0.3133, allocations: 0.9088 MB / 450.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.3133, allocations: 10.5 kB / 450.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.3134, allocations: 8 kB / 450.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.3137, allocations: 69.67 kB / 450.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008944/0.3145, allocations: 203.6 kB / 450.7 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.3171, allocations: 2.612 MB / 453.4 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.3178, allocations: 68.02 kB / 453.4 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.3178, allocations: 39.98 kB / 453.5 MB, free: 76 kB / 350.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.0004047/0.3182, allocations: 217.5 kB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.456e-05/0.3183, allocations: 43.72 kB / 453.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/0.3204, allocations: 0.7414 MB / 454.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3204, allocations: 4 kB / 454.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3204, allocations: 4 kB / 454.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3205, allocations: 3.984 kB / 454.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.3232, allocations: 1.209 MB / 455.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3232, allocations: 3.938 kB / 455.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006718/0.3239, allocations: 135.8 kB / 455.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3241, allocations: 61.67 kB / 455.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.285e-05/0.3241, allocations: 15.98 kB / 455.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002252/0.3263, allocations: 2.592 MB / 458.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3263, allocations: 0 / 458.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3292, allocations: 1.089 MB / 459.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.3294, allocations: 87.67 kB / 459.7 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.929e-05/0.3295, allocations: 19.94 kB / 459.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.33, allocations: 55.95 kB / 459.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.3301, allocations: 48.53 kB / 459.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.3302, allocations: 19.98 kB / 459.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002416/0.3304, allocations: 203 kB / 460 MB, free: 9.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3304, allocations: 0 / 460 MB, free: 9.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007439/0.3311, allocations: 176 kB / 460.2 MB, free: 9.062 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.0003102/0.3314, allocations: 163 kB / 460.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.3336, allocations: 0.8886 MB / 461.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3337, allocations: 0 / 461.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.3347, allocations: 0.5273 MB / 461.7 MB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3352, allocations: 44.92 kB / 461.8 MB, free: 7.379 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.338, allocations: 1.279 MB / 463.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3384, allocations: 282.4 kB / 463.3 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002312/0.3386, allocations: 59.41 kB / 463.4 MB, free: 5.711 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3386, allocations: 0 / 463.4 MB, free: 5.711 MB / 366.1 MB Notification: Performance of Templates: time 0.0181/0.3567, allocations: 13.42 MB / 476.8 MB, free: 8.293 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/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: 8.07643768005073]