Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001552/0.001552, allocations: 88.62 kB / 20.96 MB, free: 3.48 MB / 18.57 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.001566/0.001566, allocations: 149.4 kB / 24.25 MB, free: 192 kB / 18.57 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.471/1.471, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 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.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.008e-05/3.186e-05, allocations: 2.312 kB / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.01055/0.01058, allocations: 4.584 MB / 271.9 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005863/0.01645, allocations: 1.969 MB / 273.9 MB, free: 108 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006477/0.01709, allocations: 16 kB / 273.9 MB, free: 92 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004931/0.02202, allocations: 1.372 MB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.02453, allocations: 0.559 MB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003369/0.0279, allocations: 1.003 MB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001815/0.02971, allocations: 0.7781 MB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.03127, allocations: 0.5675 MB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.03242, allocations: 483 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000841/0.03326, allocations: 331.1 kB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000215/0.03347, allocations: 75.94 kB / 279.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.03474, allocations: 379.3 kB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.035, allocations: 167.3 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005859/0.03558, allocations: 259.3 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003127/0.03871, allocations: 1.246 MB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.03872, allocations: 4 kB / 281.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.03872, allocations: 0 / 281.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.931e-05/0.03876, allocations: 0 / 281.1 MB, free: 8.871 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.007004/0.04576, allocations: 1.39 MB / 282.5 MB, free: 7.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.04581, allocations: 8.922 kB / 282.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004441/0.05025, allocations: 0.5154 MB / 283 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.05063, allocations: 196.8 kB / 283.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.05074, allocations: 70.36 kB / 283.3 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002363/0.05098, allocations: 88.38 kB / 283.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002914/0.05389, allocations: 0.8975 MB / 284.3 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/0.05394, allocations: 12.08 kB / 284.3 MB, free: 5.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.05407, allocations: 31.94 kB / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.05411, allocations: 20 kB / 284.3 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003163/0.05727, allocations: 0.8003 MB / 285.1 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006928/0.0642, allocations: 2.339 MB / 287.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.06603, allocations: 0.51 MB / 288 MB, free: 1.797 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009064/0.06694, allocations: 218.2 kB / 288.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.8e-05/0.06703, allocations: 20.48 kB / 288.2 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.06707, allocations: 39.06 kB / 288.2 MB, free: 1.516 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.124e-06/0.06707, allocations: 0 / 288.2 MB, free: 1.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.1181/0.1852, allocations: 2.212 MB / 290.4 MB, free: 32.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.1853, allocations: 84.48 kB / 290.5 MB, free: 32.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003957/0.1857, allocations: 323.1 kB / 290.8 MB, free: 31.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.995e-05/0.1857, allocations: 35.98 kB / 290.9 MB, free: 31.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1859, allocations: 372.6 kB / 291.2 MB, free: 31.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.186, allocations: 217.5 kB / 291.5 MB, free: 31.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.1862, allocations: 150 kB / 291.6 MB, free: 31.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.1863, allocations: 347.9 kB / 291.9 MB, free: 31.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008142/0.1871, allocations: 275.7 kB / 292.2 MB, free: 31.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008644/0.188, allocations: 0.5346 MB / 292.7 MB, free: 30.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.1896, allocations: 0.8084 MB / 293.6 MB, free: 30.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1896, allocations: 2.219 kB / 293.6 MB, free: 30.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002258/0.1919, allocations: 0.9552 MB / 294.5 MB, free: 29.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1919, allocations: 8.969 kB / 294.5 MB, free: 29.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.1919, allocations: 8.156 kB / 294.5 MB, free: 29.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/0.1926, allocations: 96.14 kB / 294.6 MB, free: 29.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008876/0.1935, allocations: 207.1 kB / 294.8 MB, free: 29.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.1949, allocations: 2.617 MB / 297.4 MB, free: 27.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007529/0.1957, allocations: 62.39 kB / 297.5 MB, free: 27.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.201e-05/0.1958, allocations: 40.48 kB / 297.5 MB, free: 27.33 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.0003038/0.1961, allocations: 216.5 kB / 297.8 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.1962, allocations: 66.09 kB / 297.8 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/0.1984, allocations: 0.7395 MB / 298.6 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.1984, allocations: 6.203 kB / 298.6 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.1984, allocations: 2.375 kB / 298.6 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.1984, allocations: 3.469 kB / 298.6 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.2013, allocations: 1.219 MB / 299.8 MB, free: 26.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2013, allocations: 0 / 299.8 MB, free: 26.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007109/0.202, allocations: 135.5 kB / 299.9 MB, free: 26.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006336/0.2027, allocations: 89.19 kB / 300 MB, free: 26.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.2027, allocations: 14.75 kB / 300 MB, free: 26.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.2041, allocations: 2.606 MB / 302.6 MB, free: 23.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2041, allocations: 4.125 kB / 302.6 MB, free: 23.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.2068, allocations: 1.102 MB / 303.7 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.2071, allocations: 98.17 kB / 303.8 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.868e-05/0.2071, allocations: 18.25 kB / 303.8 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.2077, allocations: 52.23 kB / 303.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.2079, allocations: 49.34 kB / 303.9 MB, free: 23.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.2079, allocations: 19.72 kB / 304 MB, free: 23.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.2081, allocations: 211.3 kB / 304.2 MB, free: 22.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2081, allocations: 0 / 304.2 MB, free: 22.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007894/0.2089, allocations: 178.1 kB / 304.3 MB, free: 22.91 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.0002478/0.2091, allocations: 157.2 kB / 304.5 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002085/0.2112, allocations: 0.8808 MB / 305.4 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2112, allocations: 0 / 305.4 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009892/0.2122, allocations: 0.5359 MB / 305.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.2127, allocations: 53 kB / 306 MB, free: 22.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.2153, allocations: 1.217 MB / 307.2 MB, free: 21.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2155, allocations: 288.4 kB / 307.5 MB, free: 21.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003902/0.2159, allocations: 90.48 kB / 307.6 MB, free: 21.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.2161, allocations: 55.5 kB / 307.6 MB, free: 21.25 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.2161, allocations: 0 / 307.6 MB, free: 21.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01072/0.2268, allocations: 6.349 MB / 314 MB, free: 16.63 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.609271285007708]