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.00879/0.00879, allocations: 94.22 kB / 21.93 MB, free: 5.727 MB / 14.72 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.002192/0.002192, allocations: 214 kB / 25.22 MB, free: 3.289 MB / 14.72 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 1.581/1.581, allocations: 207.7 MB / 236.1 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 62.52 kB / 348.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2926, allocations: 49.15 MB / 397.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003907/0.2965, allocations: 2.522 MB / 400.1 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.2985, allocations: 1.115 MB / 401.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2986, allocations: 7.656 kB / 401.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.3, allocations: 0.5796 MB / 401.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.3004, allocations: 128.1 kB / 402 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.3016, allocations: 0.6181 MB / 402.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00042/0.302, allocations: 289.7 kB / 402.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.3025, allocations: 249.5 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3027, allocations: 125.9 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.3029, allocations: 151 kB / 403.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/0.3029, allocations: 25.5 kB / 403.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000382/0.3033, allocations: 166.1 kB / 403.6 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.16e-05/0.3034, allocations: 56.92 kB / 403.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3035, allocations: 127.2 kB / 403.7 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006515/0.3041, allocations: 0.4919 MB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3041, allocations: 0 / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3041, allocations: 0.75 kB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3042, allocations: 0 / 404.2 MB, free: 5.43 MB / 318.1 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.001597/0.3057, allocations: 0.6577 MB / 404.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3058, allocations: 9.75 kB / 404.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008127/0.3066, allocations: 118.3 kB / 405 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003929/0.307, allocations: 211 kB / 405.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.307, allocations: 26.69 kB / 405.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.3071, allocations: 34.27 kB / 405.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.3076, allocations: 339 kB / 405.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3076, allocations: 2.031 kB / 405.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.3077, allocations: 11.5 kB / 405.6 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3077, allocations: 7.344 kB / 405.6 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.3081, allocations: 235.6 kB / 405.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3098, allocations: 1.036 MB / 406.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.3103, allocations: 230.1 kB / 407.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.3105, allocations: 92.97 kB / 407.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.867e-05/0.3105, allocations: 7.141 kB / 407.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.3106, allocations: 41.38 kB / 407.3 MB, free: 3.535 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.3106, allocations: 1.438 kB / 407.3 MB, free: 3.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001188/0.3118, allocations: 411 kB / 407.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.3118, allocations: 54.16 kB / 407.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3119, allocations: 164.6 kB / 407.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.3119, allocations: 31.02 kB / 407.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.082e-05/0.312, allocations: 182.9 kB / 408.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.427e-05/0.3121, allocations: 88.5 kB / 408.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.3121, allocations: 54.61 kB / 408.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.768e-05/0.3122, allocations: 327.1 kB / 408.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.3123, allocations: 66.78 kB / 408.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.3124, allocations: 132.5 kB / 408.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.3127, allocations: 224.4 kB / 409 MB, free: 2.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3127, allocations: 0 / 409 MB, free: 2.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005523/0.3133, allocations: 327.7 kB / 409.3 MB, free: 2.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3133, allocations: 6.531 kB / 409.3 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3133, allocations: 5.375 kB / 409.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000318/0.3136, allocations: 75.92 kB / 409.4 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.3138, allocations: 46.23 kB / 409.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.3154, allocations: 1.889 MB / 411.3 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.3156, allocations: 26.47 kB / 411.3 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3156, allocations: 8.828 kB / 411.3 MB, free: 444 kB / 318.1 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 0.0001191/0.3157, allocations: 152.6 kB / 411.5 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.3158, allocations: 16.47 kB / 411.5 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005441/0.3163, allocations: 283.8 kB / 411.8 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3163, allocations: 2.875 kB / 411.8 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3163, allocations: 1.406 kB / 411.8 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3163, allocations: 1.312 kB / 411.8 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009758/0.3173, allocations: 0.587 MB / 412.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.3173, allocations: 1.922 kB / 412.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3174, allocations: 26.58 kB / 412.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.3177, allocations: 69.09 kB / 412.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.3177, allocations: 9.375 kB / 412.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/0.3198, allocations: 1.888 MB / 414.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3198, allocations: 4 kB / 414.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007098/0.3205, allocations: 442 kB / 414.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.57e-05/0.3206, allocations: 36.89 kB / 414.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.3206, allocations: 5.969 kB / 414.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3207, allocations: 6.406 kB / 414.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.3207, allocations: 20.53 kB / 414.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.3208, allocations: 4.406 kB / 414.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001271/0.3209, allocations: 123.8 kB / 415 MB, free: 13.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3209, allocations: 1 kB / 415 MB, free: 13.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.3215, allocations: 97.98 kB / 415.1 MB, free: 13.62 MB / 334.1 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.0002456/0.3217, allocations: 115.1 kB / 415.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006831/0.3224, allocations: 343.5 kB / 415.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.3224, allocations: 4 kB / 415.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.3228, allocations: 236.4 kB / 415.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.3231, allocations: 17.45 kB / 415.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.3242, allocations: 0.5977 MB / 416.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.3243, allocations: 149 kB / 416.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/0.3244, allocations: 17 kB / 416.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3244, allocations: 3.938 kB / 416.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Templates: time 0.006995/0.3314, allocations: 4.044 MB / 420.6 MB, free: 10.38 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.706680506002158]