Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001932/0.001932, allocations: 99.95 kB / 21.18 MB, free: 0.6602 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.002307/0.002307, allocations: 187.4 kB / 24.46 MB, free: 3.973 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.446/1.446, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 55.86 kB / 371.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.281, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007007/0.288, allocations: 4.581 MB / 428.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004006/0.292, allocations: 1.954 MB / 430.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.2924, allocations: 16 kB / 430.4 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003301/0.2957, allocations: 1.301 MB / 431.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.2971, allocations: 0.5656 MB / 432.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.2994, allocations: 0.9873 MB / 433.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.3005, allocations: 0.7511 MB / 434 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009463/0.3014, allocations: 0.5672 MB / 434.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004923/0.3019, allocations: 350.8 kB / 434.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.3024, allocations: 382.3 kB / 435.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.3025, allocations: 68 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008492/0.3034, allocations: 367.6 kB / 435.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.3035, allocations: 167.4 kB / 435.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.3038, allocations: 310.5 kB / 436.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00152/0.3054, allocations: 1.213 MB / 437.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3054, allocations: 3.984 kB / 437.4 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3054, allocations: 0 / 437.4 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.3054, allocations: 0 / 437.4 MB, free: 0.9023 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.004406/0.3098, allocations: 1.394 MB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.3098, allocations: 12.03 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002594/0.3124, allocations: 384 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.3127, allocations: 209.5 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.161e-05/0.3128, allocations: 62.38 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.3129, allocations: 88.36 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.3147, allocations: 0.893 MB / 440.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.3147, allocations: 11.94 kB / 440.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.555e-05/0.3148, allocations: 31.98 kB / 440.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.544e-05/0.3148, allocations: 20 kB / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.3168, allocations: 0.8081 MB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004401/0.3212, allocations: 2.278 MB / 443.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.3223, allocations: 0.5277 MB / 444.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005584/0.3229, allocations: 218.2 kB / 444.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.493e-05/0.3229, allocations: 16.48 kB / 444.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.323, allocations: 39.06 kB / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.895e-06/0.323, allocations: 0 / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008346/0.3313, allocations: 2.194 MB / 446.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.3314, allocations: 81.61 kB / 446.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000407/0.3318, allocations: 319.9 kB / 446.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.3319, allocations: 37.7 kB / 447 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.3322, allocations: 375.9 kB / 447.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.3324, allocations: 218.1 kB / 447.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.3326, allocations: 154.5 kB / 447.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.3328, allocations: 350.8 kB / 448.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008401/0.3337, allocations: 273.8 kB / 448.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.3347, allocations: 0.5294 MB / 448.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.3367, allocations: 0.8204 MB / 449.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3367, allocations: 4 kB / 449.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002358/0.339, allocations: 0.9047 MB / 450.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.339, allocations: 10.34 kB / 450.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.3391, allocations: 8 kB / 450.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002986/0.3394, allocations: 73.89 kB / 450.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009072/0.3403, allocations: 199.7 kB / 450.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.3427, allocations: 2.62 MB / 453.5 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007815/0.3435, allocations: 67.94 kB / 453.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/0.3436, allocations: 35.94 kB / 453.6 MB, free: 15.96 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.0003977/0.344, allocations: 221.7 kB / 453.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3441, allocations: 47.7 kB / 453.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.3462, allocations: 0.7415 MB / 454.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3462, allocations: 8 kB / 454.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3462, allocations: 0 / 454.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3462, allocations: 3.984 kB / 454.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.349, allocations: 1.216 MB / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.349, allocations: 0 / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.3497, allocations: 139.8 kB / 456 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.3499, allocations: 57.67 kB / 456 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.3499, allocations: 15.98 kB / 456 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.3522, allocations: 2.6 MB / 458.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3522, allocations: 0 / 458.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002869/0.3551, allocations: 1.089 MB / 459.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.3554, allocations: 79.72 kB / 459.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.046e-05/0.3554, allocations: 15.94 kB / 459.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005355/0.356, allocations: 51.94 kB / 459.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3561, allocations: 56.41 kB / 459.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.3562, allocations: 24.12 kB / 459.9 MB, free: 9.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002551/0.3564, allocations: 207.1 kB / 460.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3564, allocations: 0 / 460.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007484/0.3572, allocations: 180 kB / 460.3 MB, free: 8.926 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.0002951/0.3575, allocations: 167 kB / 460.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.3597, allocations: 0.8846 MB / 461.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3597, allocations: 4.062 kB / 461.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.3609, allocations: 0.5195 MB / 461.9 MB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.3613, allocations: 46.14 kB / 461.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.3643, allocations: 1.303 MB / 463.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.3646, allocations: 286.6 kB / 463.5 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002403/0.3648, allocations: 63.39 kB / 463.6 MB, free: 5.551 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3648, allocations: 0 / 463.6 MB, free: 5.551 MB / 366.1 MB Notification: Performance of Templates: time 0.01914/0.3839, allocations: 13.57 MB / 477.1 MB, free: 7.992 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.082953861914575]