Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.109/1.109, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006726/0.0006727, allocations: 93.34 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1709, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.003025/0.174, allocations: 3.65 MB / 378.9 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.176, allocations: 1.548 MB / 380.4 MB, free: 41.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.1763, allocations: 12.03 kB / 380.4 MB, free: 41.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.1768, allocations: 167.6 kB / 380.6 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005225/0.1773, allocations: 207.9 kB / 380.8 MB, free: 41.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.1784, allocations: 0.6353 MB / 381.4 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005246/0.1789, allocations: 0.5821 MB / 382 MB, free: 40.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.1802, allocations: 0.892 MB / 382.9 MB, free: 39.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.1805, allocations: 231.1 kB / 383.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002976/0.1808, allocations: 306.8 kB / 383.4 MB, free: 39.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.1809, allocations: 27.44 kB / 383.4 MB, free: 39.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004226/0.1813, allocations: 237.4 kB / 383.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-05/0.1814, allocations: 101.9 kB / 383.8 MB, free: 39.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.1816, allocations: 302.1 kB / 384.1 MB, free: 38.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.1821, allocations: 0.7085 MB / 384.8 MB, free: 38.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1821, allocations: 0 / 384.8 MB, free: 38.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1821, allocations: 0 / 384.8 MB, free: 38.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1822, allocations: 0 / 384.8 MB, free: 38.32 MB / 298.7 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.002909/0.1851, allocations: 1.155 MB / 385.9 MB, free: 37.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1851, allocations: 9.219 kB / 385.9 MB, free: 37.47 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.813e-05/0.1852, allocations: 118.6 kB / 386.1 MB, free: 37.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.1864, allocations: 211 kB / 386.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.1865, allocations: 244.5 kB / 386.5 MB, free: 37.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.1866, allocations: 56.5 kB / 386.6 MB, free: 36.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.383e-05/0.1867, allocations: 71.84 kB / 386.6 MB, free: 36.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.1878, allocations: 0.7832 MB / 387.4 MB, free: 36.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.1879, allocations: 0 / 387.4 MB, free: 36.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/0.1879, allocations: 32 kB / 387.4 MB, free: 36.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1879, allocations: 16 kB / 387.5 MB, free: 36.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.189, allocations: 0.6814 MB / 388.1 MB, free: 35.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002898/0.1919, allocations: 3.13 MB / 391.3 MB, free: 32.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.1935, allocations: 2.076 MB / 393.3 MB, free: 29.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/0.1941, allocations: 338.5 kB / 393.7 MB, free: 29.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.558e-05/0.1941, allocations: 101.7 kB / 393.8 MB, free: 29.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.1942, allocations: 43.22 kB / 393.8 MB, free: 29.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=72): time 1.743e-06/0.1942, allocations: 224 / 393.8 MB, free: 29.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.002124/0.1963, allocations: 1.169 MB / 395 MB, free: 28.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.1963, allocations: 119.4 kB / 395.1 MB, free: 27.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.1965, allocations: 274.4 kB / 395.4 MB, free: 27.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.1966, allocations: 41.7 kB / 395.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.1967, allocations: 291.4 kB / 395.7 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1968, allocations: 252.4 kB / 395.9 MB, free: 27.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.1968, allocations: 16 kB / 396 MB, free: 27.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.1969, allocations: 354.7 kB / 396.3 MB, free: 26.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004305/0.1973, allocations: 233.9 kB / 396.5 MB, free: 26.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/0.1978, allocations: 398.2 kB / 396.9 MB, free: 26.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009297/0.1987, allocations: 0.6494 MB / 397.6 MB, free: 25.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1987, allocations: 0 / 397.6 MB, free: 25.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00127/0.2, allocations: 0.8422 MB / 398.4 MB, free: 24.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.2, allocations: 8 kB / 398.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2, allocations: 4 kB / 398.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003143/0.2004, allocations: 121.7 kB / 398.5 MB, free: 24.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005535/0.2009, allocations: 167.8 kB / 398.7 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.2029, allocations: 3.419 MB / 402.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.2033, allocations: 91.19 kB / 402.2 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.207e-05/0.2034, allocations: 32 kB / 402.2 MB, free: 20.38 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.2036, allocations: 201.7 kB / 402.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.736e-05/0.2036, allocations: 47.42 kB / 402.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.2049, allocations: 0.757 MB / 403.2 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.2049, allocations: 8 kB / 403.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2049, allocations: 4 kB / 403.3 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2049, allocations: 7.984 kB / 403.3 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.2068, allocations: 1.52 MB / 404.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2069, allocations: 0 / 404.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.2073, allocations: 115.9 kB / 404.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000222/0.2076, allocations: 113.6 kB / 405 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.2076, allocations: 12 kB / 405 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.2092, allocations: 3.109 MB / 408.1 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2092, allocations: 3.938 kB / 408.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.2107, allocations: 1.148 MB / 409.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.2108, allocations: 124.5 kB / 409.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.2109, allocations: 16 kB / 409.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003602/0.2112, allocations: 36.03 kB / 409.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.2114, allocations: 52.53 kB / 409.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.2114, allocations: 23.98 kB / 409.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.2115, allocations: 194 kB / 409.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2115, allocations: 3.938 kB / 409.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005673/0.2121, allocations: 211.5 kB / 409.9 MB, free: 12.29 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001764/0.2139, allocations: 1.743 MB / 411.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.2151, allocations: 0.8994 MB / 412.6 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2151, allocations: 0 / 412.6 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.2157, allocations: 0.5717 MB / 413.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.2161, allocations: 36.56 kB / 413.2 MB, free: 8.957 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.2198, allocations: 3.098 MB / 416.3 MB, free: 5.746 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.22, allocations: 0.8616 MB / 417.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.2203, allocations: 207.3 kB / 417.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2203, allocations: 0 / 417.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.262/3.482, allocations: 12.48 MB / 429.8 MB, free: 8.16 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches