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.00111/0.00111, allocations: 88.41 kB / 16.65 MB, free: 6.535 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.001402/0.001402, allocations: 177.1 kB / 17.56 MB, free: 6.18 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.336/1.336, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002492, allocations: 7.938 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.0881, allocations: 50.41 MB / 351.8 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.004304/0.09244, allocations: 3.903 MB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.09513, allocations: 1.608 MB / 357.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/0.09552, allocations: 12 kB / 357.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006112/0.09614, allocations: 227.1 kB / 357.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007147/0.09688, allocations: 210.8 kB / 357.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.09841, allocations: 0.7703 MB / 358.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006897/0.09911, allocations: 0.6026 MB / 359.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.1007, allocations: 0.9194 MB / 360.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000356/0.1011, allocations: 234.9 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/0.1015, allocations: 322.5 kB / 360.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.117e-05/0.1016, allocations: 28 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.1021, allocations: 243.7 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.9e-05/0.1022, allocations: 107.5 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.1025, allocations: 320 kB / 361.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009124/0.1034, allocations: 0.9072 MB / 362.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1034, allocations: 4 kB / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1034, allocations: 0 / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1035, allocations: 0 / 362.2 MB, free: 9.016 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.00348/0.1069, allocations: 1.147 MB / 363.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.107, allocations: 8.031 kB / 363.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.1085, allocations: 204 kB / 363.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.1087, allocations: 255.2 kB / 363.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.1088, allocations: 58.38 kB / 363.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.109, allocations: 72.38 kB / 364 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1105, allocations: 0.7818 MB / 364.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.1105, allocations: 7.906 kB / 364.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.1106, allocations: 31.98 kB / 364.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.1106, allocations: 23.94 kB / 364.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.112, allocations: 0.6806 MB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004062/0.1161, allocations: 3.115 MB / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2005/0.3166, allocations: 2.082 MB / 370.7 MB, free: 24.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008478/0.3175, allocations: 338.9 kB / 371 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.3176, allocations: 95.78 kB / 371.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3177, allocations: 42.05 kB / 371.1 MB, free: 23.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=72): time 3.446e-06/0.3177, allocations: 0.8125 kB / 371.1 MB, free: 23.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.002755/0.3204, allocations: 1.185 MB / 372.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.3205, allocations: 111 kB / 372.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.3208, allocations: 274.1 kB / 372.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.3208, allocations: 39.58 kB / 372.7 MB, free: 23.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.321, allocations: 299.2 kB / 373 MB, free: 23.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.3211, allocations: 246.7 kB / 373.3 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.885e-05/0.3212, allocations: 63.42 kB / 373.3 MB, free: 23.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.3213, allocations: 353 kB / 373.7 MB, free: 22.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.3219, allocations: 242.2 kB / 373.9 MB, free: 22.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.3226, allocations: 400.6 kB / 374.3 MB, free: 22.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.3237, allocations: 0.6577 MB / 375 MB, free: 22.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3237, allocations: 1.156 kB / 375 MB, free: 22.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001516/0.3252, allocations: 0.8512 MB / 375.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3253, allocations: 6.875 kB / 375.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.3253, allocations: 4.125 kB / 375.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003759/0.3257, allocations: 131.5 kB / 376 MB, free: 22.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006279/0.3263, allocations: 166.3 kB / 376.1 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.3287, allocations: 3.42 MB / 379.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.3292, allocations: 92.72 kB / 379.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.3293, allocations: 29.67 kB / 379.7 MB, free: 18.83 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.0002417/0.3295, allocations: 208.3 kB / 379.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.95e-05/0.3296, allocations: 39.56 kB / 379.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.3312, allocations: 0.7616 MB / 380.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3313, allocations: 8.484 kB / 380.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3313, allocations: 6.406 kB / 380.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.3313, allocations: 13.2 kB / 380.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/0.3337, allocations: 1.512 MB / 382.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3337, allocations: 1.125 kB / 382.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.3342, allocations: 114.9 kB / 382.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002676/0.3345, allocations: 114.8 kB / 382.4 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.3345, allocations: 13.94 kB / 382.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.3364, allocations: 3.121 MB / 385.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3364, allocations: 0 / 385.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.3383, allocations: 1.156 MB / 386.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.564e-05/0.3384, allocations: 119.9 kB / 386.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.3384, allocations: 15.98 kB / 386.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.3389, allocations: 41.14 kB / 386.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.339, allocations: 52.52 kB / 386.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.339, allocations: 25.41 kB / 387 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.3393, allocations: 190 kB / 387.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3393, allocations: 0 / 387.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008925/0.3402, allocations: 217.2 kB / 387.4 MB, free: 13.6 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.0002579/0.3404, allocations: 155.2 kB / 387.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.3422, allocations: 0.9013 MB / 388.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3422, allocations: 4.25 kB / 388.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008391/0.3431, allocations: 0.5744 MB / 389 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.3436, allocations: 41.45 kB / 389 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.3459, allocations: 1.43 MB / 390.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.3464, allocations: 0.8679 MB / 391.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004234/0.3468, allocations: 80.48 kB / 391.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.347, allocations: 48.7 kB / 391.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.347, allocations: 0 / 391.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Templates: time 0.01161/0.3586, allocations: 5.762 MB / 397.2 MB, free: 9.156 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 -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