Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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 4.0.0+maint.om/package.mo", uses=false) 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.FixedShapes.CuboidSections,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|cuboidRight.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|cuboidRight.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 112.4 kB / 17.06 MB, free: 5.809 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.001107/0.001107, allocations: 200 kB / 18 MB, free: 4.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009964/0.0009964, allocations: 51.91 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2445, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.005354/0.2499, allocations: 4.34 MB / 405.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.2525, allocations: 1.643 MB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.2527, allocations: 16 kB / 406.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00216/0.2549, allocations: 1.018 MB / 407.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005131/0.2554, allocations: 246.2 kB / 408 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.2569, allocations: 0.7975 MB / 408.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005607/0.2574, allocations: 0.6492 MB / 409.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007263/0.2582, allocations: 0.4987 MB / 409.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.2585, allocations: 282.9 kB / 410.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.2589, allocations: 366.5 kB / 410.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.891e-05/0.259, allocations: 60 kB / 410.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004646/0.2595, allocations: 267.8 kB / 410.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.649e-05/0.2596, allocations: 135.5 kB / 411 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.2598, allocations: 330.4 kB / 411.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009226/0.2608, allocations: 0.9615 MB / 412.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2608, allocations: 0 / 412.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2608, allocations: 0 / 412.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2608, allocations: 0 / 412.3 MB, free: 13.24 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003614/0.2644, allocations: 1.257 MB / 413.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2645, allocations: 8.031 kB / 413.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00144/0.2659, allocations: 207.9 kB / 413.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.2661, allocations: 239.2 kB / 414 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.463e-05/0.2662, allocations: 58.38 kB / 414 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.2663, allocations: 76.28 kB / 414.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.2677, allocations: 0.774 MB / 414.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.2678, allocations: 3.984 kB / 414.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-05/0.2678, allocations: 32 kB / 414.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.2679, allocations: 16 kB / 414.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.2692, allocations: 0.6649 MB / 415.6 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004253/0.2735, allocations: 3.087 MB / 418.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.2759, allocations: 2.072 MB / 420.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006686/0.2766, allocations: 338.8 kB / 421.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.2767, allocations: 97.75 kB / 421.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.2768, allocations: 47.22 kB / 421.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 2.825e-06/0.2768, allocations: 0 / 421.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.002754/0.2795, allocations: 1.138 MB / 422.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.2796, allocations: 115.5 kB / 422.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.2799, allocations: 274.5 kB / 422.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.2799, allocations: 41.73 kB / 422.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.2801, allocations: 287.4 kB / 423.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.2803, allocations: 256.4 kB / 423.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.2805, allocations: 134.6 kB / 423.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.2806, allocations: 350.7 kB / 423.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004971/0.2811, allocations: 229.9 kB / 424 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/0.2817, allocations: 386.2 kB / 424.4 MB, free: 260 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.2829, allocations: 0.6376 MB / 425 MB, free: 15.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.2829, allocations: 4 kB / 425.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001587/0.2845, allocations: 0.8305 MB / 425.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2846, allocations: 8.094 kB / 425.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.2846, allocations: 4 kB / 425.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000409/0.285, allocations: 125.6 kB / 426 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006506/0.2857, allocations: 163.7 kB / 426.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.289, allocations: 3.789 MB / 430 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.2895, allocations: 83.19 kB / 430 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.2896, allocations: 35.98 kB / 430.1 MB, free: 10.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,7,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002621/0.2899, allocations: 209.6 kB / 430.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-05/0.29, allocations: 43.44 kB / 430.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.2915, allocations: 0.7337 MB / 431.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.2915, allocations: 12 kB / 431.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2915, allocations: 4 kB / 431.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2916, allocations: 3.984 kB / 431.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.2941, allocations: 1.493 MB / 432.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2941, allocations: 0 / 432.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.2946, allocations: 115.8 kB / 432.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002772/0.2949, allocations: 113.6 kB / 432.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.2949, allocations: 15.98 kB / 432.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.2974, allocations: 3.353 MB / 436.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2975, allocations: 4.031 kB / 436.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.2994, allocations: 1.113 MB / 437.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.497e-05/0.2995, allocations: 132.5 kB / 437.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.29e-05/0.2995, allocations: 16 kB / 437.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.2999, allocations: 27.97 kB / 437.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.3001, allocations: 52.58 kB / 437.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.3001, allocations: 20 kB / 437.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.3003, allocations: 194 kB / 437.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3003, allocations: 0 / 437.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007615/0.3011, allocations: 215.4 kB / 437.9 MB, free: 1.977 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.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 (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002282/0.3013, allocations: 155.1 kB / 438.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.3028, allocations: 0.8758 MB / 439 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3028, allocations: 0 / 439 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007711/0.3036, allocations: 0.5681 MB / 439.5 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.3041, allocations: 49.02 kB / 439.6 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.306, allocations: 1.121 MB / 440.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.3064, allocations: 0.8577 MB / 441.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.3068, allocations: 88.34 kB / 441.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.3069, allocations: 43.42 kB / 441.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3069, allocations: 0 / 441.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01053/0.3174, allocations: 6.221 MB / 447.9 MB, free: 7.906 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches