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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=2000,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=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 113.2 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 188.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07393/0.07509, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003521/0.07865, allocations: 2.704 MB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.08036, allocations: 1.196 MB / 379 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.0805, allocations: 4 kB / 379.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.08192, allocations: 0.6145 MB / 379.7 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1881/0.27, allocations: 130.8 kB / 379.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.2717, allocations: 0.677 MB / 380.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000514/0.2722, allocations: 291.8 kB / 380.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.2729, allocations: 275.6 kB / 381 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/0.2731, allocations: 128.8 kB / 381.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.2734, allocations: 164 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.2734, allocations: 24.75 kB / 381.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004754/0.2739, allocations: 185.7 kB / 381.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.274, allocations: 54.33 kB / 381.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.2742, allocations: 147.8 kB / 381.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009551/0.2751, allocations: 0.4951 MB / 382.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2752, allocations: 0 / 382.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2752, allocations: 0.5 kB / 382.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2752, allocations: 0 / 382.2 MB, free: 9.512 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.002355/0.2776, allocations: 0.7141 MB / 382.9 MB, free: 9.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.2776, allocations: 9.781 kB / 382.9 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.279, allocations: 122 kB / 383.1 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.2794, allocations: 260.6 kB / 383.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.2794, allocations: 32.58 kB / 383.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.2795, allocations: 34.84 kB / 383.4 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007573/0.2803, allocations: 335.2 kB / 383.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.2803, allocations: 5.703 kB / 383.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.2804, allocations: 19.06 kB / 383.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2804, allocations: 8 kB / 383.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.281, allocations: 238.7 kB / 384 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002326/0.2833, allocations: 1.436 MB / 385.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.2841, allocations: 0.7046 MB / 386.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002021/0.2843, allocations: 103 kB / 386.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-05/0.2844, allocations: 86.81 kB / 386.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.2844, allocations: 40 kB / 386.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.993e-06/0.2844, allocations: 0 / 386.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001658/0.2861, allocations: 0.4928 MB / 386.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/0.2861, allocations: 54.16 kB / 386.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.2863, allocations: 173.2 kB / 387 MB, free: 6.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2864, allocations: 30.95 kB / 387.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.2865, allocations: 174.3 kB / 387.2 MB, free: 6.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.566e-05/0.2865, allocations: 84.73 kB / 387.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.2867, allocations: 54.12 kB / 387.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.496e-05/0.2867, allocations: 329.7 kB / 387.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.2869, allocations: 67.5 kB / 387.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.2871, allocations: 127 kB / 387.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.2875, allocations: 215.1 kB / 388.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2875, allocations: 3.094 kB / 388.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007828/0.2883, allocations: 332.2 kB / 388.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2883, allocations: 9.406 kB / 388.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2884, allocations: 1.625 kB / 388.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.2888, allocations: 79.84 kB / 388.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.289, allocations: 41.47 kB / 388.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.2912, allocations: 2.04 MB / 390.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.2915, allocations: 27.31 kB / 390.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.509e-05/0.2915, allocations: 9.469 kB / 390.6 MB, free: 3.617 MB / 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.0001497/0.2917, allocations: 152 kB / 390.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.078e-05/0.2917, allocations: 16.09 kB / 390.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007204/0.2925, allocations: 280.7 kB / 391.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2925, allocations: 2.781 kB / 391.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2925, allocations: 3.969 kB / 391.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2925, allocations: 10.8 kB / 391.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.2938, allocations: 0.6855 MB / 391.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.2938, allocations: 0 / 391.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.294, allocations: 23.16 kB / 391.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003406/0.2943, allocations: 81.33 kB / 391.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.2943, allocations: 1.734 kB / 391.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.2965, allocations: 2.031 MB / 393.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2965, allocations: 0.6094 kB / 393.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008559/0.2974, allocations: 456.1 kB / 394.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.2975, allocations: 115.5 kB / 394.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.2975, allocations: 5.312 kB / 394.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.2977, allocations: 1.031 kB / 394.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/0.2978, allocations: 24.66 kB / 394.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.2978, allocations: 5.625 kB / 394.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.2979, allocations: 125.2 kB / 394.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2979, allocations: 64 / 394.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008572/0.2988, allocations: 103.8 kB / 394.7 MB, free: 484 kB / 318.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.0001987/0.299, allocations: 111.2 kB / 394.8 MB, free: 392 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.2998, allocations: 356.6 kB / 395.2 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2998, allocations: 0 / 395.2 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.3002, allocations: 247.2 kB / 395.4 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.3007, allocations: 19.89 kB / 395.4 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.3021, allocations: 0.5714 MB / 396 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3025, allocations: 0.7514 MB / 396.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.3027, allocations: 23.47 kB / 396.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.221e-05/0.3027, allocations: 17.67 kB / 396.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3028, allocations: 0 / 396.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Templates: time 0.008649/0.3114, allocations: 2.59 MB / 399.4 MB, free: 14.67 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (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) 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","/var/lib/jenkins/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) Reference file matches