Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.00164/0.00164, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001918/0.001918, allocations: 159.6 kB / 25.74 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8766/0.8766, allocations: 158.6 MB / 187.5 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/1.984e-05, allocations: 2.312 kB / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002664/0.002684, allocations: 2.733 MB / 253.8 MB, free: 5.055 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.004042, allocations: 1.161 MB / 255 MB, free: 3.887 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.004159, allocations: 7.938 kB / 255 MB, free: 3.879 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009271/0.005086, allocations: 0.6455 MB / 255.6 MB, free: 3.23 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.005327, allocations: 139 kB / 255.8 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.00609, allocations: 0.6147 MB / 256.4 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.006449, allocations: 306.4 kB / 256.7 MB, free: 2.176 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.006779, allocations: 239 kB / 256.9 MB, free: 1.938 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.006962, allocations: 187.6 kB / 257.1 MB, free: 1.75 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.007102, allocations: 123.7 kB / 257.2 MB, free: 1.629 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.935e-05/0.007131, allocations: 24 kB / 257.3 MB, free: 1.605 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002581/0.007389, allocations: 175.7 kB / 257.4 MB, free: 1.434 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.007424, allocations: 59.77 kB / 257.5 MB, free: 1.375 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.007554, allocations: 103.8 kB / 257.6 MB, free: 1.273 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.007938, allocations: 382.6 kB / 258 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.00794, allocations: 0 / 258 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.007941, allocations: 0 / 258 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.007946, allocations: 0 / 258 MB, free: 0.8984 MB / 234.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.001099/0.009045, allocations: 0.7572 MB / 258.7 MB, free: 108 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.00908, allocations: 8.031 kB / 258.7 MB, free: 100 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005936/0.009674, allocations: 180.5 kB / 258.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.009912, allocations: 208.5 kB / 259.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.009932, allocations: 29.03 kB / 259.1 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.009971, allocations: 28.38 kB / 259.2 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.01041, allocations: 267.3 kB / 259.4 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.01043, allocations: 12.08 kB / 259.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.01045, allocations: 19.94 kB / 259.5 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.01046, allocations: 12 kB / 259.5 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.01066, allocations: 135.8 kB / 259.6 MB, free: 15.19 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.01187, allocations: 1.124 MB / 260.7 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003172/0.01219, allocations: 207.1 kB / 260.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.541e-05/0.01227, allocations: 71.64 kB / 261 MB, free: 13.71 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.191e-05/0.01233, allocations: 11.98 kB / 261 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.01236, allocations: 45.39 kB / 261.1 MB, free: 13.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.01236, allocations: 0 / 261.1 MB, free: 13.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006932/0.01305, allocations: 353.1 kB / 261.4 MB, free: 13.29 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.01308, allocations: 51.41 kB / 261.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.0132, allocations: 222.5 kB / 261.7 MB, free: 12.99 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.01321, allocations: 33.7 kB / 261.7 MB, free: 12.95 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.0133, allocations: 223.1 kB / 261.9 MB, free: 12.73 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.01335, allocations: 95.2 kB / 262 MB, free: 12.64 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.01341, allocations: 59.64 kB / 262.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.01352, allocations: 0.4962 MB / 262.6 MB, free: 12.06 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.174e-05/0.01359, allocations: 44.53 kB / 262.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.01369, allocations: 126.7 kB / 262.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.01411, allocations: 186.8 kB / 262.9 MB, free: 11.64 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01411, allocations: 0 / 262.9 MB, free: 11.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000335/0.01445, allocations: 279.2 kB / 263.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.01447, allocations: 7.984 kB / 263.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.01448, allocations: 11.88 kB / 263.2 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.01474, allocations: 75.8 kB / 263.3 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.056e-05/0.01483, allocations: 43.91 kB / 263.3 MB, free: 11.22 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.01617, allocations: 2.31 MB / 265.6 MB, free: 8.797 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/0.01625, allocations: 39.72 kB / 265.7 MB, free: 8.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.01626, allocations: 8 kB / 265.7 MB, free: 8.75 MB / 250.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 9.779e-05/0.01636, allocations: 168.5 kB / 265.8 MB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.145e-05/0.01639, allocations: 23.91 kB / 265.9 MB, free: 8.551 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003189/0.01671, allocations: 234.2 kB / 266.1 MB, free: 8.309 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01671, allocations: 4 kB / 266.1 MB, free: 8.305 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.01672, allocations: 3.938 kB / 266.1 MB, free: 8.301 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01672, allocations: 3.938 kB / 266.1 MB, free: 8.297 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005681/0.01729, allocations: 0.5945 MB / 266.7 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.01729, allocations: 7.984 kB / 266.7 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.01736, allocations: 20 kB / 266.7 MB, free: 7.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.01755, allocations: 79.78 kB / 266.8 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.01757, allocations: 4 kB / 266.8 MB, free: 7.539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.01883, allocations: 2.321 MB / 269.1 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.01883, allocations: 3.938 kB / 269.1 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003635/0.0192, allocations: 409.1 kB / 269.5 MB, free: 4.664 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.242e-05/0.01924, allocations: 31.83 kB / 269.6 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.01926, allocations: 8 kB / 269.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.718e-05/0.01931, allocations: 11.92 kB / 269.6 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.01935, allocations: 19.91 kB / 269.6 MB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.01936, allocations: 8 kB / 269.6 MB, free: 4.586 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.699e-05/0.01943, allocations: 159.1 kB / 269.8 MB, free: 4.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01943, allocations: 0 / 269.8 MB, free: 4.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.01978, allocations: 95.78 kB / 269.9 MB, free: 4.336 MB / 250.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.0005112/0.02029, allocations: 127.2 kB / 270 MB, free: 4.203 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004494/0.02074, allocations: 362.6 kB / 270.3 MB, free: 3.828 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.02074, allocations: 4.125 kB / 270.3 MB, free: 3.824 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.02093, allocations: 293.2 kB / 270.6 MB, free: 3.516 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.02114, allocations: 16 kB / 270.6 MB, free: 3.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009352/0.02208, allocations: 0.5116 MB / 271.2 MB, free: 2.957 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.982e-05/0.02214, allocations: 92.31 kB / 271.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.002e-05/0.0222, allocations: 17.64 kB / 271.3 MB, free: 2.832 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.02223, allocations: 16.5 kB / 271.3 MB, free: 2.816 MB / 250.7 MB Notification: Performance of SimCode: time 1.513e-06/0.02223, allocations: 0 / 271.3 MB, free: 2.816 MB / 250.7 MB Notification: Performance of Templates: time 0.004816/0.02705, allocations: 2.557 MB / 273.8 MB, free: 284 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6954520400613546]