Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.001389/0.001389, allocations: 85.81 kB / 21.43 MB, free: 3.066 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.001494/0.001494, allocations: 162.2 kB / 24.82 MB, free: 8.867 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 1.089/1.089, allocations: 177 MB / 205.1 MB, free: 5.488 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.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.458e-05/1.601e-05, allocations: 2.312 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003964/0.00398, allocations: 2.829 MB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.005961, allocations: 1.168 MB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.006128, allocations: 4 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.007524, allocations: 0.6376 MB / 278 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.007913, allocations: 146.9 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.008928, allocations: 0.6177 MB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.009203, allocations: 310.4 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.009477, allocations: 231.1 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.009652, allocations: 203.5 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.009776, allocations: 127.7 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.009803, allocations: 24 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.01002, allocations: 179.7 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.01006, allocations: 63.75 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.01012, allocations: 95.77 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.01046, allocations: 386.7 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.01046, allocations: 3.938 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01046, allocations: 0 / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.01046, allocations: 0 / 280.3 MB, free: 10.21 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.0009156/0.01138, allocations: 0.7649 MB / 281.1 MB, free: 9.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.01141, allocations: 16.02 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004632/0.01188, allocations: 168.5 kB / 281.3 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.01206, allocations: 204.2 kB / 281.5 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.01208, allocations: 25.03 kB / 281.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.01212, allocations: 32.38 kB / 281.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.01238, allocations: 243.2 kB / 281.8 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.01239, allocations: 8.141 kB / 281.8 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.01241, allocations: 11.94 kB / 281.8 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.01242, allocations: 8 kB / 281.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.01256, allocations: 120.4 kB / 281.9 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.01367, allocations: 1.07 MB / 283 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.01397, allocations: 211 kB / 283.2 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.885e-05/0.01404, allocations: 55.64 kB / 283.2 MB, free: 7.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.01414, allocations: 27.97 kB / 283.3 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.01417, allocations: 37.39 kB / 283.3 MB, free: 7.062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.635e-06/0.01417, allocations: 3.984 kB / 283.3 MB, free: 7.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000609/0.01478, allocations: 334.5 kB / 283.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.01481, allocations: 63.28 kB / 283.7 MB, free: 6.648 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.01493, allocations: 214.6 kB / 283.9 MB, free: 6.422 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.01494, allocations: 29.7 kB / 283.9 MB, free: 6.387 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/0.01503, allocations: 231 kB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.997e-05/0.01508, allocations: 91.25 kB / 284.2 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/0.01515, allocations: 59.62 kB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.01529, allocations: 0.5001 MB / 284.8 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.903e-05/0.01533, allocations: 28.53 kB / 284.8 MB, free: 5.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.633e-05/0.01541, allocations: 123.3 kB / 285 MB, free: 5.301 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.01557, allocations: 178.6 kB / 285.1 MB, free: 5.094 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01557, allocations: 0 / 285.1 MB, free: 5.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002627/0.01583, allocations: 251.2 kB / 285.4 MB, free: 4.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/0.01584, allocations: 4 kB / 285.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.01585, allocations: 4 kB / 285.4 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.01605, allocations: 87.7 kB / 285.5 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.284e-05/0.01613, allocations: 35.98 kB / 285.5 MB, free: 4.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.01768, allocations: 2.287 MB / 287.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.511e-05/0.01774, allocations: 23.84 kB / 287.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.01775, allocations: 4 kB / 287.8 MB, free: 2.281 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.097e-05/0.01783, allocations: 176.4 kB / 288 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.01786, allocations: 27.89 kB / 288 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.01811, allocations: 208.1 kB / 288.2 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.01811, allocations: 4 kB / 288.2 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.01811, allocations: 4 kB / 288.2 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.01812, allocations: 0 / 288.2 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000458/0.01857, allocations: 0.5404 MB / 288.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01858, allocations: 4 kB / 288.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.85e-05/0.01864, allocations: 27.92 kB / 288.8 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001381/0.01877, allocations: 75.61 kB / 288.9 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.01878, allocations: 4 kB / 288.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.01994, allocations: 2.276 MB / 291.2 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.01994, allocations: 3.938 kB / 291.2 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.02024, allocations: 395.5 kB / 291.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.02028, allocations: 35.83 kB / 291.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.0203, allocations: 8 kB / 291.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.481e-05/0.02035, allocations: 0 / 291.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.627e-05/0.02038, allocations: 23.95 kB / 291.6 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.02038, allocations: 0 / 291.6 MB, free: 14.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.917e-05/0.02043, allocations: 155.5 kB / 291.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.02043, allocations: 0 / 291.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002816/0.02071, allocations: 99.81 kB / 291.9 MB, free: 14.04 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000131/0.02084, allocations: 131.1 kB / 292 MB, free: 13.9 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003135/0.02116, allocations: 351.7 kB / 292.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.02116, allocations: 0 / 292.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.02161, allocations: 285 kB / 292.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001884/0.0218, allocations: 23.92 kB / 292.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007364/0.02253, allocations: 0.5221 MB / 293.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.714e-05/0.02258, allocations: 88.31 kB / 293.2 MB, free: 12.55 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.666e-05/0.02264, allocations: 17.95 kB / 293.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.0227, allocations: 86.2 kB / 293.3 MB, free: 12.45 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.0227, allocations: 0 / 293.3 MB, free: 12.45 MB / 282.7 MB Notification: Performance of Templates: time 0.004837/0.02754, allocations: 2.958 MB / 296.3 MB, free: 9.52 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.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.8344569453038275]