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.0009114/0.0009114, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008385/0.0008385, allocations: 141.2 kB / 24.89 MB, free: 9.199 MB / 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 0.8896/0.8896, allocations: 173.3 MB / 201.5 MB, free: 9.207 MB / 186.7 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.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.292e-06/1.292e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038e-05/1.167e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003901/0.003912, allocations: 4.883 MB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.005996, allocations: 2.108 MB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.006153, allocations: 16 kB / 275.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.007596, allocations: 1.485 MB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006656/0.008262, allocations: 0.5823 MB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009551/0.009217, allocations: 1.014 MB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005097/0.009727, allocations: 0.782 MB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005565/0.01028, allocations: 0.6201 MB / 280 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003698/0.01065, allocations: 486.9 kB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003506/0.011, allocations: 343.1 kB / 280.8 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-05/0.01107, allocations: 68 kB / 280.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004221/0.01149, allocations: 375.4 kB / 281.2 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.848e-05/0.01158, allocations: 171.3 kB / 281.4 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.01174, allocations: 255.3 kB / 281.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006938/0.01244, allocations: 0.8914 MB / 282.5 MB, free: 8.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.01244, allocations: 4 kB / 282.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01244, allocations: 0 / 282.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.01245, allocations: 0 / 282.5 MB, free: 8.07 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.002084/0.01453, allocations: 1.443 MB / 284 MB, free: 6.598 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.01456, allocations: 12.92 kB / 284 MB, free: 6.586 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.01586, allocations: 0.5275 MB / 284.5 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.01598, allocations: 212.7 kB / 284.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.01603, allocations: 66.38 kB / 284.8 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.01611, allocations: 84.34 kB / 284.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005865/0.01669, allocations: 0.6402 MB / 285.5 MB, free: 5.016 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.01671, allocations: 4.172 kB / 285.5 MB, free: 5.012 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.01676, allocations: 39.94 kB / 285.6 MB, free: 4.973 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.01677, allocations: 20 kB / 285.6 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000341/0.01711, allocations: 293.8 kB / 285.9 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.01909, allocations: 1.891 MB / 287.8 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.01946, allocations: 338.6 kB / 288.1 MB, free: 2.328 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.855e-05/0.01956, allocations: 102.3 kB / 288.2 MB, free: 2.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.01961, allocations: 20.48 kB / 288.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.01963, allocations: 43.06 kB / 288.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.493e-06/0.01963, allocations: 0 / 288.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.0008649/0.0205, allocations: 0.5599 MB / 288.8 MB, free: 1.586 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.02053, allocations: 85.61 kB / 288.9 MB, free: 1.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.02068, allocations: 294.6 kB / 289.2 MB, free: 1.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.02071, allocations: 37.7 kB / 289.2 MB, free: 1.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.02083, allocations: 363.8 kB / 289.6 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.263e-05/0.02092, allocations: 214.1 kB / 289.8 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.02104, allocations: 138.5 kB / 289.9 MB, free: 428 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.808e-05/0.02112, allocations: 354.7 kB / 290.3 MB, free: 64 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.09767/0.1188, allocations: 73.98 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.1191, allocations: 340.8 kB / 290.7 MB, free: 22.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.1194, allocations: 469 kB / 291.1 MB, free: 22.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.1194, allocations: 2.719 kB / 291.1 MB, free: 22.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005703/0.12, allocations: 461.4 kB / 291.6 MB, free: 22.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.12, allocations: 9.078 kB / 291.6 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.12, allocations: 10.53 kB / 291.6 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003339/0.1204, allocations: 91.3 kB / 291.7 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.1207, allocations: 162.9 kB / 291.8 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008163/0.1215, allocations: 2.389 MB / 294.2 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.1218, allocations: 86.55 kB / 294.3 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.1218, allocations: 28.44 kB / 294.3 MB, free: 20.05 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (92): * Single equations (assignments): 90 * 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.0001362/0.122, allocations: 156.4 kB / 294.5 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.122, allocations: 45.33 kB / 294.5 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004295/0.1225, allocations: 354.4 kB / 294.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1225, allocations: 9.312 kB / 294.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1225, allocations: 1.719 kB / 294.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1225, allocations: 2.812 kB / 294.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008524/0.1233, allocations: 0.6469 MB / 295.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1233, allocations: 3.938 kB / 295.6 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.1236, allocations: 99.38 kB / 295.6 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000237/0.1238, allocations: 84.2 kB / 295.7 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.1238, allocations: 11.56 kB / 295.7 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006439/0.1245, allocations: 2.38 MB / 298.1 MB, free: 17.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.1245, allocations: 8.25 kB / 298.1 MB, free: 17.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.1249, allocations: 477.6 kB / 298.6 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.705e-05/0.125, allocations: 62.83 kB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1251, allocations: 12.14 kB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.1252, allocations: 19.47 kB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.1253, allocations: 45.66 kB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1253, allocations: 11.41 kB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.898e-05/0.1254, allocations: 104.1 kB / 298.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.1254, allocations: 0 / 298.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004761/0.1259, allocations: 215.8 kB / 299.1 MB, free: 17.18 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 (55): * Single equations (assignments): 53 * 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.0001895/0.126, allocations: 146.1 kB / 299.2 MB, free: 17.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000501/0.1265, allocations: 0.5549 MB / 299.8 MB, free: 16.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.1266, allocations: 4.906 kB / 299.8 MB, free: 16.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.1268, allocations: 392.8 kB / 300.1 MB, free: 16.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.127, allocations: 54.61 kB / 300.2 MB, free: 16.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.1284, allocations: 1.097 MB / 301.3 MB, free: 16.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.613e-05/0.1285, allocations: 133.2 kB / 301.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002047/0.1287, allocations: 88.19 kB / 301.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.1289, allocations: 123.8 kB / 301.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1289, allocations: 0 / 301.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of Templates: time 0.008977/0.1379, allocations: 6.378 MB / 308 MB, free: 14.83 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7135953698307276]