Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 116.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.00117, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 64.38 kB / 306.5 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08444/0.0856, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.005201/0.09083, allocations: 4.336 MB / 361.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.09325, allocations: 1.689 MB / 363 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.09343, allocations: 16 kB / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002137/0.09558, allocations: 0.9535 MB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.09606, allocations: 218.7 kB / 364.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.09741, allocations: 0.7121 MB / 364.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005614/0.09798, allocations: 0.6375 MB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007939/0.09879, allocations: 0.5677 MB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.09913, allocations: 278.9 kB / 366.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003514/0.09949, allocations: 358.5 kB / 366.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-05/0.09958, allocations: 56 kB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000448/0.1, allocations: 299.7 kB / 367.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.384e-05/0.1001, allocations: 131.5 kB / 367.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.1004, allocations: 330.4 kB / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009054/0.1014, allocations: 0.9697 MB / 368.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1014, allocations: 4 kB / 368.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1014, allocations: 0 / 368.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.1014, allocations: 0 / 368.5 MB, free: 2.605 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.003702/0.1051, allocations: 1.268 MB / 369.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1051, allocations: 12.03 kB / 369.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.1065, allocations: 200 kB / 370 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.1067, allocations: 251.2 kB / 370.2 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/0.1068, allocations: 50.38 kB / 370.3 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1069, allocations: 76.38 kB / 370.4 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1409/0.2478, allocations: 0.7642 MB / 371.1 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.2479, allocations: 2.562 kB / 371.1 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.248, allocations: 33.36 kB / 371.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.248, allocations: 21.22 kB / 371.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2494, allocations: 0.6584 MB / 371.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003749/0.2531, allocations: 3.276 MB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.2551, allocations: 2.076 MB / 377.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005618/0.2557, allocations: 319.3 kB / 377.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.2558, allocations: 179.2 kB / 377.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.2559, allocations: 43.91 kB / 377.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=72): time 2.535e-06/0.2559, allocations: 0 / 377.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.002423/0.2583, allocations: 1.14 MB / 378.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.2583, allocations: 111.4 kB / 379 MB, free: 14.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.2586, allocations: 273.7 kB / 379.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.2586, allocations: 41.23 kB / 379.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2588, allocations: 299.2 kB / 379.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.2589, allocations: 246.4 kB / 379.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.2591, allocations: 135 kB / 379.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.076e-05/0.2592, allocations: 348.6 kB / 380.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.2596, allocations: 231.2 kB / 380.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.2602, allocations: 386.2 kB / 380.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009679/0.2612, allocations: 0.6392 MB / 381.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2612, allocations: 1.25 kB / 381.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001447/0.2626, allocations: 0.8256 MB / 382.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.2627, allocations: 11.25 kB / 382.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2627, allocations: 3.375 kB / 382.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003709/0.263, allocations: 124.6 kB / 382.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/0.2637, allocations: 157.1 kB / 382.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.2662, allocations: 3.79 MB / 386.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004843/0.2667, allocations: 84.81 kB / 386.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.2667, allocations: 28.64 kB / 386.5 MB, free: 8.82 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.0002152/0.2669, allocations: 203.6 kB / 386.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.582e-05/0.267, allocations: 48.8 kB / 386.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.2685, allocations: 0.7354 MB / 387.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.2685, allocations: 11.03 kB / 387.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2685, allocations: 7.406 kB / 387.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.2685, allocations: 3.75 kB / 387.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.2708, allocations: 1.495 MB / 389 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2708, allocations: 1.875 kB / 389 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.2713, allocations: 109.3 kB / 389.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.2716, allocations: 114.7 kB / 389.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.2717, allocations: 21.36 kB / 389.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/0.2737, allocations: 3.349 MB / 392.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2737, allocations: 0.9062 kB / 392.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.2754, allocations: 1.117 MB / 393.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.2755, allocations: 127.9 kB / 393.9 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.083e-05/0.2756, allocations: 11.56 kB / 393.9 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/0.276, allocations: 29 kB / 393.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.2761, allocations: 50.14 kB / 394 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.2761, allocations: 19.06 kB / 394 MB, free: 3.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.2763, allocations: 198.7 kB / 394.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2763, allocations: 0 / 394.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007632/0.2771, allocations: 222.6 kB / 394.4 MB, free: 3.359 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.0002233/0.2773, allocations: 154.5 kB / 394.5 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.279, allocations: 0.9041 MB / 395.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.279, allocations: 0 / 395.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006835/0.2797, allocations: 0.5626 MB / 396 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.2801, allocations: 36.86 kB / 396 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.282, allocations: 1.395 MB / 397.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2823, allocations: 0.8642 MB / 398.3 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004057/0.2827, allocations: 80.91 kB / 398.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.2828, allocations: 40.47 kB / 398.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2829, allocations: 0 / 398.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of Templates: time 0.01056/0.2934, allocations: 6.152 MB / 404.6 MB, free: 14.18 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches