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.001553/0.001553, allocations: 114.2 kB / 17.69 MB, free: 5.309 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.001688/0.001688, allocations: 191 kB / 18.63 MB, free: 4.375 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.334/1.334, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009716/0.0009716, allocations: 40.66 kB / 302.1 MB, free: 5.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08226, allocations: 49.45 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.005507/0.08781, allocations: 4.313 MB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.09013, allocations: 1.643 MB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.0903, allocations: 12 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002073/0.09238, allocations: 1.019 MB / 358.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004586/0.09285, allocations: 262.1 kB / 358.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.09423, allocations: 0.7894 MB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000542/0.09478, allocations: 0.6455 MB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/0.09548, allocations: 0.5169 MB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.09579, allocations: 270.9 kB / 361 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003775/0.09618, allocations: 366.5 kB / 361.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.9e-05/0.09626, allocations: 56 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004348/0.0967, allocations: 267.8 kB / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.955e-05/0.09681, allocations: 135.5 kB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.09706, allocations: 330.4 kB / 362.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008601/0.09793, allocations: 0.9617 MB / 363.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09795, allocations: 0 / 363.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09796, allocations: 0 / 363.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.09797, allocations: 4 kB / 363.1 MB, free: 8.113 MB / 302.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.003478/0.1015, allocations: 1.26 MB / 364.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1015, allocations: 8.031 kB / 364.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.1029, allocations: 208 kB / 364.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.1031, allocations: 243.4 kB / 364.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.1031, allocations: 58.31 kB / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1033, allocations: 72.38 kB / 364.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.1045, allocations: 0.7663 MB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.1046, allocations: 3.938 kB / 365.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.229e-05/0.1046, allocations: 35.98 kB / 365.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.1047, allocations: 16 kB / 365.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.106, allocations: 0.6649 MB / 366.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.1097, allocations: 3.087 MB / 369.5 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1447/0.2544, allocations: 2.068 MB / 371.6 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007483/0.2552, allocations: 329 kB / 371.9 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.2553, allocations: 99.72 kB / 372 MB, free: 24.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.2554, allocations: 43.67 kB / 372 MB, free: 24.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=72): time 2.445e-06/0.2554, allocations: 0.7812 kB / 372 MB, free: 24.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.002843/0.2582, allocations: 1.14 MB / 373.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.2583, allocations: 114.4 kB / 373.3 MB, free: 23.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.2585, allocations: 274 kB / 373.5 MB, free: 23.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.2586, allocations: 35.95 kB / 373.6 MB, free: 23.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2587, allocations: 296.3 kB / 373.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.2588, allocations: 247.1 kB / 374.1 MB, free: 23.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.259, allocations: 137.7 kB / 374.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.2591, allocations: 353.5 kB / 374.6 MB, free: 23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.2596, allocations: 226.2 kB / 374.8 MB, free: 22.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005881/0.2602, allocations: 391.4 kB / 375.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.2612, allocations: 0.634 MB / 375.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2613, allocations: 2.375 kB / 375.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001442/0.2627, allocations: 0.8327 MB / 376.7 MB, free: 21.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2627, allocations: 6.781 kB / 376.7 MB, free: 21.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.2627, allocations: 7 kB / 376.7 MB, free: 21.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003723/0.2631, allocations: 122.8 kB / 376.8 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006363/0.2638, allocations: 166.7 kB / 377 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.2662, allocations: 3.783 MB / 380.7 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.2667, allocations: 91.61 kB / 380.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.2668, allocations: 28.83 kB / 380.9 MB, free: 18.39 MB / 302.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.0002177/0.267, allocations: 212.1 kB / 381.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.362e-05/0.2671, allocations: 39.75 kB / 381.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.2686, allocations: 0.7415 MB / 381.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2686, allocations: 7.781 kB / 381.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.2686, allocations: 6.625 kB / 381.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2687, allocations: 4.016 kB / 381.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.2709, allocations: 1.489 MB / 383.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2709, allocations: 0 / 383.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/0.2714, allocations: 114.3 kB / 383.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.2717, allocations: 116 kB / 383.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.835e-05/0.2717, allocations: 14.19 kB / 383.6 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.2737, allocations: 3.343 MB / 386.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2737, allocations: 0 / 386.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.2756, allocations: 1.128 MB / 388.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.2756, allocations: 119.5 kB / 388.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.919e-05/0.2757, allocations: 21.34 kB / 388.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.2761, allocations: 32.53 kB / 388.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2762, allocations: 51.44 kB / 388.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.2762, allocations: 23.95 kB / 388.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.2764, allocations: 195.2 kB / 388.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.2764, allocations: 0 / 388.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007359/0.2772, allocations: 217 kB / 388.7 MB, free: 12.95 MB / 302.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.0002054/0.2774, allocations: 151.4 kB / 388.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.2789, allocations: 0.8758 MB / 389.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2789, allocations: 0 / 389.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.2796, allocations: 0.5663 MB / 390.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.2801, allocations: 41.64 kB / 390.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.282, allocations: 1.114 MB / 391.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.2824, allocations: 0.8639 MB / 392.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003312/0.2828, allocations: 82.33 kB / 392.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.2829, allocations: 41 kB / 392.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2829, allocations: 0 / 392.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01067/0.2936, allocations: 6.098 MB / 398.5 MB, free: 8.648 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","/var/lib/jenkins1/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