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.001584/0.001584, allocations: 77.39 kB / 20.68 MB, free: 1.035 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.001646/0.001646, allocations: 155.9 kB / 23.94 MB, free: 4.176 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.401/1.401, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.294e-05, allocations: 2.281 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004897/0.00492, allocations: 4.54 MB / 323.5 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003798/0.008718, allocations: 1.954 MB / 325.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003312/0.009049, allocations: 16.62 kB / 325.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003444/0.01249, allocations: 1.38 MB / 326.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001483/0.01398, allocations: 0.5499 MB / 327.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002216/0.01619, allocations: 1 MB / 328.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.01733, allocations: 0.7687 MB / 329.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009546/0.01828, allocations: 0.5736 MB / 329.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006396/0.01892, allocations: 478.8 kB / 330.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004801/0.0194, allocations: 330.3 kB / 330.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.0195, allocations: 67.28 kB / 330.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008376/0.02034, allocations: 381 kB / 331 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.0205, allocations: 163.9 kB / 331.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002984/0.0208, allocations: 255.7 kB / 331.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001567/0.02237, allocations: 1.236 MB / 332.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.02237, allocations: 0 / 332.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.02237, allocations: 3.938 kB / 332.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.02239, allocations: 0 / 332.6 MB, free: 11.43 MB / 302.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.004559/0.02694, allocations: 1.39 MB / 334 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.02698, allocations: 10.64 kB / 334 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002749/0.02973, allocations: 381.2 kB / 334.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.03, allocations: 206.4 kB / 334.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.985e-05/0.03007, allocations: 64.72 kB / 334.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.03021, allocations: 86 kB / 334.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.03202, allocations: 0.8957 MB / 335.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.03205, allocations: 5.766 kB / 335.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.394e-05/0.03213, allocations: 30.59 kB / 335.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.03216, allocations: 24.5 kB / 335.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.03408, allocations: 0.7987 MB / 336.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004338/0.03842, allocations: 2.295 MB / 338.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.03963, allocations: 0.5159 MB / 339.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005793/0.04021, allocations: 222.1 kB / 339.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.899e-05/0.04029, allocations: 12.48 kB / 339.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.04032, allocations: 43 kB / 339.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.725e-06/0.04033, allocations: 0 / 339.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.009011/0.04934, allocations: 2.202 MB / 341.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.0494, allocations: 85.55 kB / 341.8 MB, free: 4.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.04976, allocations: 303.9 kB / 342.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.132e-05/0.04982, allocations: 37.7 kB / 342.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.05008, allocations: 371.9 kB / 342.5 MB, free: 3.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.05028, allocations: 222.1 kB / 342.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.05053, allocations: 150.5 kB / 342.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.05073, allocations: 350.8 kB / 343.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009056/0.05163, allocations: 269.8 kB / 343.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.05275, allocations: 0.5303 MB / 344 MB, free: 2.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.05477, allocations: 0.8088 MB / 344.8 MB, free: 1.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.05477, allocations: 0 / 344.8 MB, free: 1.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002471/0.05724, allocations: 0.9126 MB / 345.8 MB, free: 312 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.05727, allocations: 11.98 kB / 345.8 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.05728, allocations: 8 kB / 345.8 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002699/0.05755, allocations: 69.8 kB / 345.8 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009634/0.05852, allocations: 199.7 kB / 346 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002332/0.06085, allocations: 2.608 MB / 348.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/0.0616, allocations: 59.95 kB / 348.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.06167, allocations: 43.98 kB / 348.8 MB, free: 13.1 MB / 318.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.0003378/0.06201, allocations: 217.6 kB / 349 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.827e-05/0.06211, allocations: 43.72 kB / 349 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/0.06437, allocations: 0.7413 MB / 349.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.06438, allocations: 15.94 kB / 349.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.06438, allocations: 0 / 349.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.06439, allocations: 3.984 kB / 349.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.0673, allocations: 1.209 MB / 351 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.06731, allocations: 0 / 351 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007429/0.06805, allocations: 131.8 kB / 351.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.06824, allocations: 69.61 kB / 351.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.06829, allocations: 19.92 kB / 351.2 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.07045, allocations: 2.592 MB / 353.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.07046, allocations: 3.938 kB / 353.8 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004888/0.07535, allocations: 1.085 MB / 354.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004006/0.07575, allocations: 87.67 kB / 355 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.07586, allocations: 12 kB / 355 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009776/0.07683, allocations: 51.95 kB / 355 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.07703, allocations: 48.34 kB / 355.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.957e-05/0.07711, allocations: 19.98 kB / 355.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004111/0.07752, allocations: 207 kB / 355.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.07753, allocations: 4.062 kB / 355.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001336/0.07886, allocations: 175.9 kB / 355.5 MB, free: 6.086 MB / 318.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.0004333/0.07929, allocations: 151.2 kB / 355.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004015/0.08331, allocations: 0.8846 MB / 356.5 MB, free: 5.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.08331, allocations: 0 / 356.5 MB, free: 5.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.08539, allocations: 0.5274 MB / 357 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007835/0.08617, allocations: 47.95 kB / 357.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.09111, allocations: 1.197 MB / 358.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.09159, allocations: 282.6 kB / 358.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007109/0.0923, allocations: 92.39 kB / 358.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.09262, allocations: 52.47 kB / 358.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.09262, allocations: 0 / 358.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of Templates: time 0.02461/0.1172, allocations: 6.219 MB / 364.9 MB, free: 12.64 MB / 334.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.402286380529404]