Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009645/0.0009645, allocations: 164.5 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9011/0.9011, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.31e-05/1.426e-05, allocations: 14.25 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004264/0.004278, allocations: 4.922 MB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.007071, allocations: 2.155 MB / 280.5 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.007279, allocations: 16 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.008786, allocations: 1.477 MB / 282 MB, free: 8.559 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006387/0.009424, allocations: 421.1 kB / 282.4 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.0106, allocations: 1.152 MB / 283.6 MB, free: 6.988 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005797/0.01118, allocations: 0.7547 MB / 284.3 MB, free: 6.227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005953/0.01177, allocations: 0.6162 MB / 284.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004094/0.01218, allocations: 490.9 kB / 285.4 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.01247, allocations: 335.1 kB / 285.8 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-05/0.01254, allocations: 68 kB / 285.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.01306, allocations: 415.3 kB / 286.2 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003467/0.01341, allocations: 167.3 kB / 286.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.01357, allocations: 263.3 kB / 286.6 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007456/0.01431, allocations: 0.8914 MB / 287.5 MB, free: 3.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.01432, allocations: 0 / 287.5 MB, free: 3.008 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.01432, allocations: 0 / 287.5 MB, free: 3.008 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.01432, allocations: 0 / 287.5 MB, free: 3.008 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.00232/0.01664, allocations: 1.451 MB / 289 MB, free: 1.527 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.01667, allocations: 19.98 kB / 289 MB, free: 1.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.01815, allocations: 0.5158 MB / 289.5 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.01829, allocations: 189.5 kB / 289.7 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.01833, allocations: 66.38 kB / 289.8 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.01841, allocations: 80.33 kB / 289.8 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1027/0.1211, allocations: 0.6441 MB / 290.5 MB, free: 19.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-05/0.1212, allocations: 192 / 290.5 MB, free: 19.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001682/0.1214, allocations: 37.59 kB / 290.5 MB, free: 19.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1214, allocations: 19.16 kB / 290.5 MB, free: 19.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005186/0.1219, allocations: 290.6 kB / 290.8 MB, free: 19.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002294/0.1242, allocations: 1.898 MB / 292.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.1246, allocations: 344 kB / 293.1 MB, free: 18.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1247, allocations: 100.7 kB / 293.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.737e-05/0.1248, allocations: 25.72 kB / 293.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.1248, allocations: 43.28 kB / 293.2 MB, free: 18.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.753e-06/0.1248, allocations: 0 / 293.2 MB, free: 18.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.0009289/0.1258, allocations: 0.5686 MB / 293.8 MB, free: 18.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.1258, allocations: 84.48 kB / 293.9 MB, free: 18.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1259, allocations: 284.1 kB / 294.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.1259, allocations: 35.8 kB / 294.2 MB, free: 18.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1261, allocations: 371 kB / 294.6 MB, free: 17.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.1261, allocations: 213.8 kB / 294.8 MB, free: 17.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.1263, allocations: 131.2 kB / 294.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.48e-05/0.1263, allocations: 352.8 kB / 295.2 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.1264, allocations: 76.38 kB / 295.3 MB, free: 17.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.1266, allocations: 349.6 kB / 295.7 MB, free: 17.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.127, allocations: 463.9 kB / 296.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.127, allocations: 6.625 kB / 296.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005088/0.1275, allocations: 461.3 kB / 296.6 MB, free: 16.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1275, allocations: 8.625 kB / 296.6 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1275, allocations: 7.094 kB / 296.6 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.1278, allocations: 87.06 kB / 296.7 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.1281, allocations: 171.7 kB / 296.8 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007323/0.1288, allocations: 2.387 MB / 299.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.1291, allocations: 86.02 kB / 299.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.1291, allocations: 27.41 kB / 299.3 MB, free: 14.46 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.0001066/0.1292, allocations: 165.4 kB / 299.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.1293, allocations: 42.02 kB / 299.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004055/0.1297, allocations: 350.3 kB / 299.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1297, allocations: 9.062 kB / 299.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1297, allocations: 2.25 kB / 299.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1297, allocations: 3.281 kB / 299.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006881/0.1304, allocations: 0.6563 MB / 300.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1304, allocations: 2.641 kB / 300.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.1306, allocations: 101.9 kB / 300.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.1308, allocations: 70.17 kB / 300.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.1308, allocations: 12.31 kB / 300.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006439/0.1315, allocations: 2.382 MB / 303.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1315, allocations: 0.7031 kB / 303.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004577/0.1319, allocations: 481.5 kB / 303.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.243e-05/0.132, allocations: 56.09 kB / 303.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.132, allocations: 14.75 kB / 303.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.1322, allocations: 24.25 kB / 303.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.1322, allocations: 42.67 kB / 303.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.1323, allocations: 11.08 kB / 303.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.033e-05/0.1323, allocations: 93.81 kB / 303.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1323, allocations: 0 / 303.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003925/0.1327, allocations: 220.1 kB / 304 MB, free: 11.49 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.0001657/0.1329, allocations: 149.8 kB / 304.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004629/0.1334, allocations: 0.5525 MB / 304.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.1334, allocations: 6.25 kB / 304.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.1336, allocations: 393.7 kB / 305.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.1338, allocations: 51.67 kB / 305.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.1351, allocations: 1.057 MB / 306.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.548e-05/0.1352, allocations: 133.1 kB / 306.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002018/0.1354, allocations: 77.92 kB / 306.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.1355, allocations: 123.7 kB / 306.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1355, allocations: 1.5 kB / 306.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of Templates: time 0.00803/0.1435, allocations: 6.429 MB / 313 MB, free: 8.375 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.6876210528425872]