Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",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.001041/0.001041, allocations: 171.9 kB / 16.72 MB, free: 4.961 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.12/1.12, 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.0007422/0.0007422, allocations: 93.28 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002735/0.0002736, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1772, allocations: 47.58 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.003714/0.1809, allocations: 4.456 MB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.1832, allocations: 1.577 MB / 381.2 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004785/0.1837, allocations: 16.62 kB / 381.2 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004605/0.1842, allocations: 193.8 kB / 381.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006049/0.1848, allocations: 269 kB / 381.7 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1859, allocations: 0.6486 MB / 382.3 MB, free: 39.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005947/0.1865, allocations: 0.7471 MB / 383.1 MB, free: 39.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001923/0.1884, allocations: 1.407 MB / 384.5 MB, free: 38.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002768/0.1887, allocations: 287.8 kB / 384.8 MB, free: 38.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.189, allocations: 391.6 kB / 385.2 MB, free: 37.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.611e-05/0.1891, allocations: 34.94 kB / 385.2 MB, free: 37.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004044/0.1895, allocations: 216.5 kB / 385.4 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.1896, allocations: 123.4 kB / 385.5 MB, free: 37.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.1899, allocations: 387.5 kB / 385.9 MB, free: 37.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005979/0.1905, allocations: 0.8983 MB / 386.8 MB, free: 36.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1905, allocations: 1.469 kB / 386.8 MB, free: 36.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1905, allocations: 0 / 386.8 MB, free: 36.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.1905, allocations: 0 / 386.8 MB, free: 36.82 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002993/0.1935, allocations: 1.276 MB / 388.1 MB, free: 35.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.1935, allocations: 8.031 kB / 388.1 MB, free: 35.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.1937, allocations: 152.4 kB / 388.2 MB, free: 35.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.195, allocations: 259.7 kB / 388.5 MB, free: 35.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.1952, allocations: 260.7 kB / 388.7 MB, free: 34.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1952, allocations: 74.38 kB / 388.8 MB, free: 34.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1953, allocations: 100.3 kB / 388.9 MB, free: 34.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.1965, allocations: 0.9381 MB / 389.9 MB, free: 33.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.1965, allocations: 4 kB / 389.9 MB, free: 33.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.1966, allocations: 40 kB / 389.9 MB, free: 33.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1966, allocations: 24 kB / 389.9 MB, free: 33.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.1976, allocations: 0.7659 MB / 390.7 MB, free: 33.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.2013, allocations: 3.412 MB / 394.1 MB, free: 29.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.2027, allocations: 1.241 MB / 395.3 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003906/0.2031, allocations: 377.2 kB / 395.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.798e-05/0.2032, allocations: 102 kB / 395.8 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.2032, allocations: 47.5 kB / 395.9 MB, free: 27.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=87): time 2.234e-06/0.2032, allocations: 0 / 395.9 MB, free: 27.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=87): time 0.001633/0.2049, allocations: 1.296 MB / 397.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.2049, allocations: 94.05 kB / 397.2 MB, free: 26.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.2052, allocations: 360.3 kB / 397.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.2052, allocations: 41.7 kB / 397.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.2053, allocations: 382.8 kB / 398 MB, free: 25.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.2055, allocations: 299.7 kB / 398.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.2055, allocations: 20 kB / 398.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.992e-05/0.2056, allocations: 366.7 kB / 398.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.2059, allocations: 262.5 kB / 398.9 MB, free: 24.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.2063, allocations: 467.5 kB / 399.4 MB, free: 23.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007895/0.2071, allocations: 0.7666 MB / 400.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2071, allocations: 4 kB / 400.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.0012/0.2084, allocations: 0.9606 MB / 401.1 MB, free: 21.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.2084, allocations: 8 kB / 401.1 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2084, allocations: 8.594 kB / 401.1 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.2087, allocations: 119.4 kB / 401.3 MB, free: 21.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/0.2094, allocations: 203.7 kB / 401.5 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/0.2116, allocations: 5.574 MB / 407 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004425/0.2121, allocations: 107 kB / 407.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.2122, allocations: 43.94 kB / 407.2 MB, free: 15.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001991/0.2124, allocations: 233.5 kB / 407.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.2124, allocations: 51.34 kB / 407.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.2136, allocations: 0.8521 MB / 408.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2136, allocations: 8 kB / 408.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2136, allocations: 7.938 kB / 408.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2136, allocations: 3.984 kB / 408.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.2156, allocations: 1.916 MB / 410.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2156, allocations: 8.281 kB / 410.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004834/0.2161, allocations: 139.8 kB / 410.4 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002171/0.2163, allocations: 107.3 kB / 410.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.2164, allocations: 20 kB / 410.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.2184, allocations: 5.291 MB / 415.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2184, allocations: 7.938 kB / 415.8 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.2197, allocations: 1.264 MB / 417.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.041e-05/0.2198, allocations: 152.2 kB / 417.2 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.825e-05/0.2198, allocations: 12 kB / 417.2 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.2202, allocations: 23.98 kB / 417.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.2203, allocations: 68.58 kB / 417.3 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-05/0.2203, allocations: 20 kB / 417.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001843/0.2205, allocations: 259.1 kB / 417.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2205, allocations: 0 / 417.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007027/0.2212, allocations: 263.3 kB / 417.9 MB, free: 3.914 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.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 (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001513/0.2227, allocations: 1.864 MB / 419.7 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.2238, allocations: 1.16 MB / 420.9 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2239, allocations: 1.438 kB / 420.9 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.2245, allocations: 0.7996 MB / 421.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.2251, allocations: 66.58 kB / 421.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.2299, allocations: 3.718 MB / 425.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.2304, allocations: 0.9109 MB / 426.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003771/0.2307, allocations: 261.9 kB / 426.6 MB, free: 10.78 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2308, allocations: 0 / 426.6 MB, free: 10.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.817/4.048, allocations: 22.08 MB / 448.7 MB, free: 4.668 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches