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.001041/0.001041, allocations: 95.56 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 207.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.492 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002452/0.0002452, allocations: 8.281 kB / 308.4 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09559, allocations: 51.53 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.004286/0.09992, allocations: 3.897 MB / 363.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.1026, allocations: 1.69 MB / 365.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.1028, allocations: 16 kB / 365.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004925/0.1033, allocations: 227.1 kB / 365.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004942/0.1038, allocations: 214.7 kB / 366 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.1051, allocations: 0.7361 MB / 366.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00054/0.1057, allocations: 0.6101 MB / 367.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.1073, allocations: 0.9154 MB / 368.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.1076, allocations: 242.9 kB / 368.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003426/0.108, allocations: 314.6 kB / 368.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.108, allocations: 28 kB / 368.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004857/0.1085, allocations: 259.7 kB / 369 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-05/0.1086, allocations: 103.5 kB / 369.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.1089, allocations: 316.1 kB / 369.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007172/0.1096, allocations: 0.7363 MB / 370.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1096, allocations: 0 / 370.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1097, allocations: 0 / 370.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1097, allocations: 0 / 370.2 MB, free: 2.695 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.003389/0.1131, allocations: 1.167 MB / 371.4 MB, free: 1.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1131, allocations: 8.031 kB / 371.4 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.1145, allocations: 204 kB / 371.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.1147, allocations: 242.8 kB / 371.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.1148, allocations: 54.38 kB / 371.9 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.1149, allocations: 72.38 kB / 371.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1162, allocations: 0.7819 MB / 372.7 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.1163, allocations: 7.906 kB / 372.7 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.1163, allocations: 24 kB / 372.7 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1164, allocations: 20 kB / 372.8 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1612/0.2776, allocations: 0.681 MB / 373.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004129/0.2817, allocations: 3.283 MB / 376.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.2838, allocations: 2.096 MB / 378.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005898/0.2844, allocations: 336.1 kB / 379.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.2846, allocations: 175.8 kB / 379.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.2846, allocations: 44.7 kB / 379.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=72): time 2.905e-06/0.2846, allocations: 0 / 379.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.00243/0.287, allocations: 1.179 MB / 380.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.2871, allocations: 115 kB / 380.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.2874, allocations: 271 kB / 380.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.2874, allocations: 40.7 kB / 381 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2876, allocations: 292.4 kB / 381.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.2877, allocations: 248.9 kB / 381.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.2878, allocations: 65.14 kB / 381.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.693e-05/0.2879, allocations: 348.7 kB / 381.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.2884, allocations: 242.1 kB / 382.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.2889, allocations: 399.1 kB / 382.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.29, allocations: 0.6615 MB / 383.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.29, allocations: 2.312 kB / 383.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001498/0.2915, allocations: 0.8473 MB / 384 MB, free: 11.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.2915, allocations: 11.12 kB / 384 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2915, allocations: 3.844 kB / 384 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003836/0.2919, allocations: 122.6 kB / 384.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.2926, allocations: 166.1 kB / 384.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002373/0.2949, allocations: 3.411 MB / 387.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/0.2955, allocations: 94.06 kB / 387.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.2955, allocations: 28.11 kB / 387.9 MB, free: 8.617 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.0002481/0.2958, allocations: 200.2 kB / 388.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.2959, allocations: 43.25 kB / 388.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.2974, allocations: 0.7674 MB / 388.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.2974, allocations: 7.266 kB / 388.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.2975, allocations: 2.906 kB / 388.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.2975, allocations: 6.562 kB / 388.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/0.2999, allocations: 1.512 MB / 390.4 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.2999, allocations: 0.6562 kB / 390.4 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/0.3004, allocations: 125.4 kB / 390.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002938/0.3007, allocations: 110 kB / 390.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.3008, allocations: 14.84 kB / 390.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.3027, allocations: 3.116 MB / 393.8 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3027, allocations: 9.438 kB / 393.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.3046, allocations: 1.148 MB / 394.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/0.3047, allocations: 129.1 kB / 395 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.3047, allocations: 10.94 kB / 395 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.3051, allocations: 36.56 kB / 395.1 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.3052, allocations: 56.31 kB / 395.1 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.3053, allocations: 19.11 kB / 395.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.3055, allocations: 199.1 kB / 395.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3055, allocations: 0 / 395.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000819/0.3063, allocations: 216.7 kB / 395.6 MB, free: 3.371 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.0002231/0.3065, allocations: 158.5 kB / 395.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.308, allocations: 0.8969 MB / 396.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.308, allocations: 1 kB / 396.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007231/0.3087, allocations: 0.5743 MB / 397.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.3092, allocations: 41.2 kB / 397.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.3112, allocations: 1.472 MB / 398.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.3115, allocations: 0.8634 MB / 399.6 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.3117, allocations: 51.17 kB / 399.6 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3117, allocations: 7.938 kB / 399.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of Templates: time 0.01337/0.3251, allocations: 11.42 MB / 411 MB, free: 8.73 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/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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches