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.002562/0.002562, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002886/0.002886, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 18.57 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.585/1.585, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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 2.365e-06/2.365e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.764e-05/4.001e-05, allocations: 3.156 kB / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.01468/0.01472, allocations: 4.945 MB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007683/0.02241, allocations: 2.078 MB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000605/0.02301, allocations: 16 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006681/0.02969, allocations: 1.462 MB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002467/0.03216, allocations: 449.1 kB / 281.3 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004822/0.03698, allocations: 1.163 MB / 282.4 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.03886, allocations: 0.7625 MB / 283.2 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001661/0.04052, allocations: 0.5675 MB / 283.8 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.04176, allocations: 483 kB / 284.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000902/0.04267, allocations: 327.1 kB / 284.6 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.04285, allocations: 68 kB / 284.6 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001602/0.04445, allocations: 403.2 kB / 285 MB, free: 5.066 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002743/0.04473, allocations: 167.3 kB / 285.2 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005412/0.04527, allocations: 251.4 kB / 285.4 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003099/0.04837, allocations: 1.269 MB / 286.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.04837, allocations: 0 / 286.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.04837, allocations: 0 / 286.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.04839, allocations: 0 / 286.7 MB, free: 3.383 MB / 266.7 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.008888/0.05728, allocations: 1.544 MB / 288.2 MB, free: 1.797 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.05733, allocations: 12.03 kB / 288.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005483/0.06281, allocations: 0.492 MB / 288.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.06334, allocations: 204.3 kB / 288.9 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.06349, allocations: 62.38 kB / 289 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003644/0.06386, allocations: 84.38 kB / 289.1 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1292/0.1931, allocations: 0.9265 MB / 290 MB, free: 28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/0.1931, allocations: 1.5 kB / 290 MB, free: 28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000199/0.1933, allocations: 34 kB / 290 MB, free: 28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.1934, allocations: 20.94 kB / 290.1 MB, free: 28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.1951, allocations: 0.7433 MB / 290.8 MB, free: 28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004221/0.1993, allocations: 2.628 MB / 293.4 MB, free: 26.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.2003, allocations: 0.5258 MB / 294 MB, free: 26.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.2007, allocations: 206.6 kB / 294.2 MB, free: 26.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/0.2008, allocations: 32.53 kB / 294.2 MB, free: 26.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.2009, allocations: 41.48 kB / 294.2 MB, free: 26.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.384e-06/0.2009, allocations: 0.5 kB / 294.2 MB, free: 26.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005042/0.2059, allocations: 1.815 MB / 296 MB, free: 25.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.2059, allocations: 85.38 kB / 296.1 MB, free: 25.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.2063, allocations: 416.2 kB / 296.5 MB, free: 25.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.2063, allocations: 35.83 kB / 296.6 MB, free: 25.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.2065, allocations: 432.3 kB / 297 MB, free: 24.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.2066, allocations: 232.9 kB / 297.2 MB, free: 24.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.2069, allocations: 174.5 kB / 297.4 MB, free: 24.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.207, allocations: 0.5449 MB / 297.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005504/0.2075, allocations: 236 kB / 298.2 MB, free: 24.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007085/0.2082, allocations: 0.6058 MB / 298.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.2095, allocations: 0.8652 MB / 299.6 MB, free: 22.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.2095, allocations: 2.188 kB / 299.6 MB, free: 22.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001675/0.2111, allocations: 0.8681 MB / 300.5 MB, free: 22.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.2112, allocations: 11.09 kB / 300.5 MB, free: 22.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.2112, allocations: 7.156 kB / 300.5 MB, free: 22.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005679/0.2118, allocations: 101.8 kB / 300.6 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000743/0.2125, allocations: 180.4 kB / 300.8 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.2141, allocations: 3.672 MB / 304.5 MB, free: 18.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005553/0.2147, allocations: 49.27 kB / 304.5 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.2147, allocations: 35.2 kB / 304.6 MB, free: 18.87 MB / 266.7 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.0002855/0.215, allocations: 263 kB / 304.8 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.2151, allocations: 59.56 kB / 304.9 MB, free: 18.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.2167, allocations: 0.6689 MB / 305.5 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.2167, allocations: 6.875 kB / 305.5 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2167, allocations: 1.891 kB / 305.6 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.2167, allocations: 3.141 kB / 305.6 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.219, allocations: 1.331 MB / 306.9 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.219, allocations: 0.75 kB / 306.9 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.2195, allocations: 112.6 kB / 307 MB, free: 17.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004385/0.22, allocations: 93.83 kB / 307.1 MB, free: 17.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.22, allocations: 14.78 kB / 307.1 MB, free: 17.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.2215, allocations: 3.652 MB / 310.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2215, allocations: 0 / 310.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.2232, allocations: 1.052 MB / 311.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.2234, allocations: 86.45 kB / 311.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.2234, allocations: 10.91 kB / 311.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.2238, allocations: 26.39 kB / 311.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.2239, allocations: 54.67 kB / 312 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.2239, allocations: 25.39 kB / 312 MB, free: 13.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001774/0.2241, allocations: 253.5 kB / 312.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2241, allocations: 3.938 kB / 312.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007975/0.2249, allocations: 175.1 kB / 312.4 MB, free: 13.12 MB / 266.7 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.0002627/0.2252, allocations: 156.1 kB / 312.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.2266, allocations: 0.9803 MB / 313.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2266, allocations: 0 / 313.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.2273, allocations: 0.6415 MB / 314.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003822/0.2277, allocations: 54.02 kB / 314.3 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.2297, allocations: 1.168 MB / 315.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.2299, allocations: 284.9 kB / 315.7 MB, free: 9.996 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003262/0.2302, allocations: 84.39 kB / 315.8 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2304, allocations: 52.47 kB / 315.8 MB, free: 9.855 MB / 266.7 MB Notification: Performance of SimCode: time 1.143e-06/0.2304, allocations: 0 / 315.8 MB, free: 9.855 MB / 266.7 MB Notification: Performance of Templates: time 0.01128/0.2416, allocations: 6.447 MB / 322.3 MB, free: 3.562 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_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.934705949970521]