Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 112.5 kB / 21.19 MB, free: 0.7734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 210.1 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 7.988 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 47.94 kB / 379.1 MB, free: 2.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.262, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006845/0.2689, allocations: 5.099 MB / 437.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003742/0.2726, allocations: 2.187 MB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.2729, allocations: 16 kB / 439.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003051/0.2759, allocations: 1.412 MB / 441.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.2769, allocations: 429.3 kB / 441.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.2792, allocations: 1.221 MB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008659/0.28, allocations: 0.7395 MB / 443.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000862/0.2809, allocations: 0.569 MB / 444.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004351/0.2813, allocations: 346.8 kB / 444.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004987/0.2818, allocations: 426.3 kB / 444.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.771e-05/0.2819, allocations: 64 kB / 444.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008076/0.2827, allocations: 415.6 kB / 445.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.2829, allocations: 159.4 kB / 445.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003335/0.2832, allocations: 382.1 kB / 445.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.2846, allocations: 1.214 MB / 447 MB, free: 8.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2846, allocations: 0 / 447 MB, free: 8.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2846, allocations: 4 kB / 447 MB, free: 8.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.2846, allocations: 0 / 447 MB, free: 8.246 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.004137/0.2888, allocations: 1.402 MB / 448.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2888, allocations: 8.031 kB / 448.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002518/0.2913, allocations: 368.1 kB / 448.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.2916, allocations: 194.3 kB / 449 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.125e-05/0.2916, allocations: 66.38 kB / 449.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.2918, allocations: 80.38 kB / 449.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.2934, allocations: 0.88 MB / 450 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.2934, allocations: 3.953 kB / 450 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.552e-05/0.2935, allocations: 32 kB / 450.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.2935, allocations: 23.94 kB / 450.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.2952, allocations: 0.7847 MB / 450.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004379/0.2996, allocations: 2.783 MB / 453.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.3007, allocations: 0.5132 MB / 454.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.3011, allocations: 218.2 kB / 454.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.7e-05/0.3012, allocations: 28.47 kB / 454.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.3013, allocations: 43.05 kB / 454.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 4.569e-06/0.3013, allocations: 3.984 kB / 454.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.006928/0.3082, allocations: 2.155 MB / 456.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.3083, allocations: 85.61 kB / 456.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003342/0.3086, allocations: 312.3 kB / 457 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.811e-05/0.3087, allocations: 33.7 kB / 457 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.3089, allocations: 375.9 kB / 457.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3091, allocations: 222.1 kB / 457.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.3093, allocations: 146.5 kB / 457.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3094, allocations: 350.8 kB / 458.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/0.3101, allocations: 269.8 kB / 458.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008854/0.311, allocations: 0.5043 MB / 458.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.3127, allocations: 0.8126 MB / 459.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3127, allocations: 0 / 459.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002003/0.3147, allocations: 0.9011 MB / 460.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3147, allocations: 8 kB / 460.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.3147, allocations: 8 kB / 460.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/0.315, allocations: 69.61 kB / 460.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/0.3158, allocations: 199.7 kB / 460.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.318, allocations: 2.665 MB / 463.5 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.3186, allocations: 55.95 kB / 463.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/0.3187, allocations: 35.98 kB / 463.6 MB, free: 6.867 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.0003198/0.319, allocations: 223.7 kB / 463.8 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-05/0.3191, allocations: 43.72 kB / 463.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.3209, allocations: 0.7258 MB / 464.6 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.3209, allocations: 8 kB / 464.6 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3209, allocations: 4 kB / 464.6 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.321, allocations: 3.984 kB / 464.6 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.3236, allocations: 1.383 MB / 466 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3236, allocations: 0 / 466 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006472/0.3243, allocations: 131.8 kB / 466.1 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/0.3244, allocations: 57.67 kB / 466.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.3245, allocations: 15.98 kB / 466.2 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.3266, allocations: 2.642 MB / 468.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3266, allocations: 0 / 468.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/0.329, allocations: 1.078 MB / 469.9 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.3292, allocations: 87.62 kB / 470 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.3293, allocations: 11.98 kB / 470 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.3298, allocations: 48.02 kB / 470.1 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3299, allocations: 48.41 kB / 470.1 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.3299, allocations: 19.98 kB / 470.1 MB, free: 24 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.3302, allocations: 211.1 kB / 470.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3302, allocations: 0 / 470.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006909/0.3309, allocations: 176 kB / 470.5 MB, free: 15.64 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.0002816/0.3312, allocations: 175.1 kB / 470.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.3331, allocations: 0.873 MB / 471.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3331, allocations: 0 / 471.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009761/0.334, allocations: 0.5273 MB / 472.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004275/0.3345, allocations: 48.52 kB / 472.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.337, allocations: 1.241 MB / 473.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.3376, allocations: 0.881 MB / 474.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.3378, allocations: 59.41 kB / 474.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3378, allocations: 0 / 474.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of Templates: time 0.01689/0.3547, allocations: 13.49 MB / 487.8 MB, free: 14.26 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.746970948996022]