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.001729/0.001729, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.001445/0.001445, allocations: 193.1 kB / 24.47 MB, free: 4.152 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: 225.6 MB / 253.3 MB, free: 13.02 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.001662/0.001662, allocations: 51.91 kB / 371.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2597, allocations: 52.19 MB / 423.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007095/0.2668, allocations: 5.117 MB / 429 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004083/0.2708, allocations: 2.102 MB / 431.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005087/0.2714, allocations: 16 kB / 431.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.2749, allocations: 1.419 MB / 432.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.2766, allocations: 0.5826 MB / 433.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.279, allocations: 1.064 MB / 434.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.2803, allocations: 0.7472 MB / 434.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.2816, allocations: 0.5778 MB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006211/0.2822, allocations: 334.9 kB / 435.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007461/0.283, allocations: 434.3 kB / 436.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.2831, allocations: 64 kB / 436.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.2842, allocations: 391.7 kB / 436.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.2843, allocations: 159.4 kB / 436.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004317/0.2848, allocations: 386.1 kB / 437.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001716/0.2865, allocations: 1.191 MB / 438.4 MB, free: 124 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2865, allocations: 4 kB / 438.4 MB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2865, allocations: 0 / 438.4 MB, free: 120 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.2865, allocations: 4 kB / 438.4 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.004426/0.2909, allocations: 1.39 MB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.291, allocations: 8.031 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002608/0.2936, allocations: 388.1 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.2939, allocations: 202.2 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.847e-05/0.294, allocations: 62.38 kB / 440.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.2942, allocations: 88.31 kB / 440.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.2959, allocations: 0.8761 MB / 441.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.296, allocations: 4 kB / 441.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.706e-05/0.296, allocations: 32 kB / 441.5 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.2961, allocations: 20 kB / 441.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.298, allocations: 0.7964 MB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004872/0.3028, allocations: 2.763 MB / 445.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.304, allocations: 0.5206 MB / 445.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005689/0.3045, allocations: 222.2 kB / 445.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.888e-05/0.3046, allocations: 16.48 kB / 445.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.3047, allocations: 39.06 kB / 445.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.435e-06/0.3047, allocations: 0 / 445.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008377/0.313, allocations: 2.198 MB / 448 MB, free: 6.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.3131, allocations: 85.61 kB / 448.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.3135, allocations: 304.5 kB / 448.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.3135, allocations: 33.7 kB / 448.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.3138, allocations: 375.9 kB / 448.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.314, allocations: 226.1 kB / 449 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/0.3143, allocations: 146.6 kB / 449.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.3145, allocations: 350.7 kB / 449.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.3153, allocations: 277.8 kB / 449.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.3163, allocations: 0.5005 MB / 450.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.3181, allocations: 0.8126 MB / 451.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3181, allocations: 4 kB / 451.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002258/0.3204, allocations: 0.9051 MB / 452 MB, free: 1.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3204, allocations: 8 kB / 452 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.3204, allocations: 12 kB / 452 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.3207, allocations: 73.55 kB / 452.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009019/0.3216, allocations: 199.7 kB / 452.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/0.324, allocations: 2.662 MB / 455 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/0.3248, allocations: 64.08 kB / 455 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.732e-05/0.3249, allocations: 39.98 kB / 455.1 MB, free: 14.67 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.0003684/0.3252, allocations: 213.7 kB / 455.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3253, allocations: 43.75 kB / 455.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/0.3274, allocations: 0.7452 MB / 456.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3275, allocations: 8 kB / 456.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3275, allocations: 0 / 456.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.3275, allocations: 3.984 kB / 456.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002965/0.3304, allocations: 1.395 MB / 457.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3304, allocations: 0 / 457.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000696/0.3311, allocations: 127.8 kB / 457.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/0.3313, allocations: 69.66 kB / 457.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.3314, allocations: 19.92 kB / 457.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.3336, allocations: 2.642 MB / 460.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3336, allocations: 8.016 kB / 460.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002716/0.3363, allocations: 1.085 MB / 461.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.3365, allocations: 95.61 kB / 461.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.3366, allocations: 8 kB / 461.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005106/0.3371, allocations: 48.02 kB / 461.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3373, allocations: 64.27 kB / 461.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.3373, allocations: 16 kB / 461.7 MB, free: 7.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3375, allocations: 207.1 kB / 461.9 MB, free: 7.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3375, allocations: 0 / 461.9 MB, free: 7.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007347/0.3383, allocations: 172 kB / 462 MB, free: 7.383 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.0002785/0.3385, allocations: 163.1 kB / 462.2 MB, free: 7.211 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3407, allocations: 0.8847 MB / 463.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3407, allocations: 0 / 463.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3417, allocations: 0.5312 MB / 463.6 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3422, allocations: 54.08 kB / 463.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.345, allocations: 1.268 MB / 464.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.3455, allocations: 0.8848 MB / 465.8 MB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.3457, allocations: 71.33 kB / 465.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3457, allocations: 0 / 465.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of Templates: time 0.01772/0.3635, allocations: 13.19 MB / 479.1 MB, free: 6.234 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: 7.722241090843454]