Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.001469/0.001469, allocations: 78.28 kB / 21.42 MB, free: 3.07 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.001538/0.001538, allocations: 152.7 kB / 24.8 MB, free: 9.273 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.9327/0.9327, allocations: 173.3 MB / 201.4 MB, free: 9.254 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.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 268.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.864e-05, allocations: 2.312 kB / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00307/0.003089, allocations: 2.806 MB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.004772, allocations: 1.117 MB / 272.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.004921, allocations: 11.94 kB / 272.3 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.005977, allocations: 0.6299 MB / 273 MB, free: 1.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.006287, allocations: 138.9 kB / 273.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009425/0.007229, allocations: 0.6408 MB / 273.7 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.007576, allocations: 314.4 kB / 274.1 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.007916, allocations: 227.2 kB / 274.3 MB, free: 344 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.008154, allocations: 195.6 kB / 274.5 MB, free: 148 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.008557, allocations: 127.7 kB / 274.6 MB, free: 20 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.369e-05/0.008611, allocations: 28.05 kB / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/0.008934, allocations: 171.6 kB / 274.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.056e-05/0.008974, allocations: 55.77 kB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.832e-05/0.009063, allocations: 99.75 kB / 274.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004612/0.009524, allocations: 386.7 kB / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.009526, allocations: 0 / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.009527, allocations: 0 / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.009531, allocations: 0 / 275.3 MB, free: 15.29 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.0012/0.01073, allocations: 0.7688 MB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.01077, allocations: 8.922 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006661/0.01143, allocations: 172.5 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.01167, allocations: 208.1 kB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.01169, allocations: 21.03 kB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.01173, allocations: 36.36 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.01205, allocations: 251.2 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.01206, allocations: 192 / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.01208, allocations: 15.94 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.01209, allocations: 8 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.01226, allocations: 108.4 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.01352, allocations: 1.081 MB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.01382, allocations: 213.1 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.203e-05/0.01389, allocations: 55.64 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.11e-05/0.01395, allocations: 19.98 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.01397, allocations: 33.39 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.01398, allocations: 0 / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007086/0.01468, allocations: 329.8 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.01471, allocations: 59.34 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.01484, allocations: 221.8 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.01485, allocations: 29.7 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.01495, allocations: 227 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.01501, allocations: 91.16 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.921e-05/0.01509, allocations: 67.59 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.01521, allocations: 0.4962 MB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.931e-05/0.01526, allocations: 32.53 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.661e-05/0.01536, allocations: 118.8 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.01553, allocations: 170.7 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01553, allocations: 0 / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003547/0.01588, allocations: 251.3 kB / 280.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.0159, allocations: 8 kB / 280.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.0159, allocations: 0 / 280.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002349/0.01614, allocations: 87.61 kB / 280.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.01625, allocations: 43.92 kB / 280.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.01795, allocations: 2.276 MB / 282.8 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.15e-05/0.01804, allocations: 27.78 kB / 282.8 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.01805, allocations: 12 kB / 282.8 MB, free: 7.379 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 9.95e-05/0.01815, allocations: 172.5 kB / 283 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.01819, allocations: 23.91 kB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003173/0.01851, allocations: 224.9 kB / 283.2 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01851, allocations: 0 / 283.2 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01852, allocations: 4 kB / 283.2 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01852, allocations: 0 / 283.2 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.01912, allocations: 0.5325 MB / 283.7 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01912, allocations: 0 / 283.7 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.819e-05/0.0192, allocations: 27.92 kB / 283.8 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.01938, allocations: 67.64 kB / 283.8 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.0194, allocations: 11.98 kB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.02069, allocations: 2.279 MB / 286.1 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.0207, allocations: 3.938 kB / 286.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003755/0.02107, allocations: 386.2 kB / 286.5 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-05/0.02112, allocations: 27.89 kB / 286.5 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.02114, allocations: 4 kB / 286.5 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.878e-05/0.02122, allocations: 11.94 kB / 286.6 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.02125, allocations: 20.02 kB / 286.6 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.02126, allocations: 8 kB / 286.6 MB, free: 3.402 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.797e-05/0.02133, allocations: 151 kB / 286.7 MB, free: 3.254 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02133, allocations: 4 kB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004305/0.02176, allocations: 99.72 kB / 286.8 MB, free: 3.152 MB / 266.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.0001597/0.02192, allocations: 131.1 kB / 287 MB, free: 3.016 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000387/0.02231, allocations: 347.7 kB / 287.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.02231, allocations: 0 / 287.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.02252, allocations: 288.8 kB / 287.6 MB, free: 2.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.02279, allocations: 20.38 kB / 287.6 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009193/0.02371, allocations: 0.5103 MB / 288.1 MB, free: 1.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.814e-05/0.02377, allocations: 88.31 kB / 288.2 MB, free: 1.684 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.096e-05/0.02386, allocations: 25.94 kB / 288.2 MB, free: 1.656 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.02393, allocations: 90.19 kB / 288.3 MB, free: 1.566 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02393, allocations: 0 / 288.3 MB, free: 1.566 MB / 266.7 MB Notification: Performance of Templates: time 0.09359/0.1175, allocations: 2.849 MB / 291.2 MB, free: 25.87 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.746712062973529]