Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00176/0.00176, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.799/1.799, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007044/0.0007044, allocations: 85.97 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004969, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2807, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002311/0.283, allocations: 2.255 MB / 376.8 MB, free: 43.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.2843, allocations: 1.084 MB / 377.9 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2845, allocations: 6.969 kB / 377.9 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.2848, allocations: 98.2 kB / 378 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002476/0.285, allocations: 104.4 kB / 378.1 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008867/0.2859, allocations: 0.5445 MB / 378.6 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.2862, allocations: 273.6 kB / 378.9 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007935/0.287, allocations: 0.5267 MB / 379.4 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.2871, allocations: 99.83 kB / 379.5 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.2873, allocations: 147.2 kB / 379.7 MB, free: 41.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.2874, allocations: 12.66 kB / 379.7 MB, free: 41.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.2877, allocations: 157 kB / 379.9 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.259e-05/0.2877, allocations: 45.75 kB / 379.9 MB, free: 41.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.401e-05/0.2878, allocations: 73.17 kB / 380 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.2881, allocations: 368.8 kB / 380.3 MB, free: 41.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2881, allocations: 3.938 kB / 380.3 MB, free: 41.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2881, allocations: 1.344 kB / 380.3 MB, free: 41.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2881, allocations: 0 / 380.3 MB, free: 41.14 MB / 298.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.00131/0.2894, allocations: 0.6787 MB / 381 MB, free: 40.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2895, allocations: 9.375 kB / 381 MB, free: 40.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007256/0.2902, allocations: 117.5 kB / 381.1 MB, free: 40.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.2904, allocations: 254.2 kB / 381.4 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.2905, allocations: 29.86 kB / 381.4 MB, free: 40.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.2905, allocations: 40.81 kB / 381.5 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.291, allocations: 328.1 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.291, allocations: 1.5 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.2911, allocations: 10.62 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.2911, allocations: 8 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.2915, allocations: 238.4 kB / 382 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.2931, allocations: 1.453 MB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/0.2937, allocations: 0.698 MB / 384.2 MB, free: 37.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.2938, allocations: 99.8 kB / 384.3 MB, free: 37.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.992e-05/0.2939, allocations: 86.38 kB / 384.4 MB, free: 37.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.294, allocations: 44.91 kB / 384.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.294, allocations: 0 / 384.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001144/0.2951, allocations: 496.6 kB / 384.9 MB, free: 37.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.2952, allocations: 53.66 kB / 384.9 MB, free: 37.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.2953, allocations: 174.9 kB / 385.1 MB, free: 37.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.2953, allocations: 30.52 kB / 385.1 MB, free: 37.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.398e-05/0.2954, allocations: 178 kB / 385.3 MB, free: 36.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.2955, allocations: 80.62 kB / 385.4 MB, free: 36.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.2955, allocations: 9 kB / 385.4 MB, free: 36.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.2956, allocations: 327.5 kB / 385.7 MB, free: 36.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2957, allocations: 73.66 kB / 385.8 MB, free: 36.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.2958, allocations: 119.5 kB / 385.9 MB, free: 36.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.296, allocations: 91.12 kB / 386 MB, free: 36.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.296, allocations: 1.188 kB / 386 MB, free: 36.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005671/0.2966, allocations: 325.8 kB / 386.3 MB, free: 36.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2966, allocations: 5.562 kB / 386.3 MB, free: 36.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2966, allocations: 1.781 kB / 386.3 MB, free: 36.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003107/0.2969, allocations: 85.7 kB / 386.4 MB, free: 36.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.2971, allocations: 37.89 kB / 386.4 MB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.2985, allocations: 1.848 MB / 388.3 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.2986, allocations: 27.38 kB / 388.3 MB, free: 34.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.2987, allocations: 7.5 kB / 388.3 MB, free: 34.37 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.2988, allocations: 148.4 kB / 388.5 MB, free: 34.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.2988, allocations: 19.61 kB / 388.5 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004482/0.2993, allocations: 293.8 kB / 388.8 MB, free: 33.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2993, allocations: 4 kB / 388.8 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2993, allocations: 3.984 kB / 388.8 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.2993, allocations: 4 kB / 388.8 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007025/0.3, allocations: 0.6871 MB / 389.5 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3, allocations: 0 / 389.5 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.3001, allocations: 20 kB / 389.5 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001961/0.3003, allocations: 76.73 kB / 389.6 MB, free: 33.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3004, allocations: 4 kB / 389.6 MB, free: 33.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.3016, allocations: 1.833 MB / 391.4 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3016, allocations: 0 / 391.4 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.3021, allocations: 452.3 kB / 391.8 MB, free: 30.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.3022, allocations: 112.9 kB / 392 MB, free: 30.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.3022, allocations: 8 kB / 392 MB, free: 30.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.3023, allocations: 8 kB / 392 MB, free: 30.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.3023, allocations: 15.92 kB / 392 MB, free: 30.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3024, allocations: 11.98 kB / 392 MB, free: 30.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.22e-05/0.3024, allocations: 127.5 kB / 392.1 MB, free: 30.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3024, allocations: 0 / 392.1 MB, free: 30.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003839/0.3028, allocations: 91.84 kB / 392.2 MB, free: 30.29 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001793/0.303, allocations: 123.2 kB / 392.3 MB, free: 30.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004769/0.3035, allocations: 354.5 kB / 392.7 MB, free: 29.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3035, allocations: 0 / 392.7 MB, free: 29.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.3038, allocations: 247 kB / 392.9 MB, free: 29.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3041, allocations: 15.95 kB / 392.9 MB, free: 29.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008034/0.3049, allocations: 0.739 MB / 393.7 MB, free: 28.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.3051, allocations: 0.7597 MB / 394.4 MB, free: 27.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.3051, allocations: 15.44 kB / 394.5 MB, free: 27.96 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3051, allocations: 0 / 394.5 MB, free: 27.96 MB / 298.7 MB Notification: Performance of Templates: time 0.004332/0.3095, allocations: 3.905 MB / 398.4 MB, free: 24.06 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches