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.001711/0.001711, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002185/0.002185, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.46/1.46, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.001974/0.001974, allocations: 71.88 kB / 379.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2528, allocations: 53.36 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006856/0.2596, allocations: 5.112 MB / 437.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003701/0.2633, allocations: 2.183 MB / 439.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003757/0.2637, allocations: 16 kB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003253/0.2669, allocations: 1.414 MB / 441.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.268, allocations: 425.3 kB / 441.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.2704, allocations: 1.214 MB / 442.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009064/0.2713, allocations: 0.7355 MB / 443.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008481/0.2721, allocations: 0.5091 MB / 444 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.2726, allocations: 342.8 kB / 444.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.2731, allocations: 422.3 kB / 444.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.2732, allocations: 68 kB / 444.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000781/0.274, allocations: 415.6 kB / 445.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.2741, allocations: 167.4 kB / 445.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.2745, allocations: 374.1 kB / 445.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.2759, allocations: 1.212 MB / 447 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2759, allocations: 0 / 447 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.276, allocations: 0 / 447 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.138e-06/0.276, allocations: 0 / 447 MB, free: 8.348 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.004264/0.2802, allocations: 1.406 MB / 448.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.2803, allocations: 8.031 kB / 448.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002599/0.2829, allocations: 372.1 kB / 448.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.2831, allocations: 187.3 kB / 448.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/0.2831, allocations: 66.38 kB / 449 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.2833, allocations: 80.38 kB / 449.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.285, allocations: 0.88 MB / 450 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.285, allocations: 3.953 kB / 450 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.319e-05/0.2851, allocations: 32 kB / 450 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.2851, allocations: 23.94 kB / 450 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.2869, allocations: 0.7925 MB / 450.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00461/0.2915, allocations: 2.775 MB / 453.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.2926, allocations: 0.5137 MB / 454.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.2932, allocations: 214.2 kB / 454.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.2933, allocations: 36.44 kB / 454.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.2933, allocations: 39.06 kB / 454.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.2933, allocations: 4 kB / 454.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00711/0.3004, allocations: 2.155 MB / 456.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.3005, allocations: 97.59 kB / 456.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.3008, allocations: 300.4 kB / 456.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.358e-05/0.3009, allocations: 37.7 kB / 457 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.3011, allocations: 371.9 kB / 457.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.3013, allocations: 222.1 kB / 457.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.3015, allocations: 142.6 kB / 457.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3017, allocations: 350.8 kB / 458 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000746/0.3025, allocations: 269.8 kB / 458.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009523/0.3034, allocations: 0.5004 MB / 458.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.3052, allocations: 0.8126 MB / 459.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3052, allocations: 4 kB / 459.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002137/0.3073, allocations: 0.8971 MB / 460.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.3073, allocations: 11.98 kB / 460.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.3073, allocations: 15.98 kB / 460.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.3076, allocations: 73.7 kB / 460.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008538/0.3085, allocations: 195.7 kB / 460.8 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.3109, allocations: 2.661 MB / 463.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006143/0.3115, allocations: 59.89 kB / 463.5 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-05/0.3116, allocations: 40.05 kB / 463.6 MB, free: 6.957 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.0003232/0.3119, allocations: 213.6 kB / 463.8 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/0.312, allocations: 43.72 kB / 463.8 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.3139, allocations: 0.7258 MB / 464.5 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.3139, allocations: 12 kB / 464.5 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3139, allocations: 0 / 464.5 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3139, allocations: 3.984 kB / 464.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.3167, allocations: 1.38 MB / 465.9 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3168, allocations: 0 / 465.9 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006588/0.3174, allocations: 131.8 kB / 466.1 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.3176, allocations: 57.67 kB / 466.1 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.3176, allocations: 15.98 kB / 466.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.3198, allocations: 2.646 MB / 468.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3198, allocations: 0 / 468.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.3224, allocations: 1.078 MB / 469.9 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.3226, allocations: 95.55 kB / 469.9 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.62e-05/0.3227, allocations: 12.06 kB / 470 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004869/0.3232, allocations: 43.95 kB / 470 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3233, allocations: 48.41 kB / 470 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.3233, allocations: 19.98 kB / 470.1 MB, free: 120 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002703/0.3236, allocations: 207.1 kB / 470.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3236, allocations: 0 / 470.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007317/0.3243, allocations: 184 kB / 470.5 MB, free: 15.73 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.0002957/0.3246, allocations: 163.1 kB / 470.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.3266, allocations: 0.8769 MB / 471.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3266, allocations: 0 / 471.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.3276, allocations: 0.5234 MB / 472 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.3281, allocations: 54.64 kB / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.3307, allocations: 1.204 MB / 473.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.3312, allocations: 0.881 MB / 474.1 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000367/0.3316, allocations: 84.52 kB / 474.2 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.3317, allocations: 51.41 kB / 474.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3317, allocations: 0 / 474.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of Templates: time 0.01388/0.3456, allocations: 6.962 MB / 481.2 MB, free: 4.867 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.7688344875350595]