Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009488/0.0009488, allocations: 199.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.6 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007486/0.0007486, allocations: 104.7 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002165, allocations: 4 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1841, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002052/0.1862, allocations: 2.388 MB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1873, allocations: 1.09 MB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1874, allocations: 8 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.1877, allocations: 96.17 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.1879, allocations: 114.4 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008135/0.1888, allocations: 0.5194 MB / 412.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.189, allocations: 282.5 kB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007297/0.1898, allocations: 0.5492 MB / 413.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1899, allocations: 111.6 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.19, allocations: 139.5 kB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.1901, allocations: 16 kB / 413.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002332/0.1903, allocations: 163.8 kB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.1903, allocations: 47.78 kB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.321e-05/0.1904, allocations: 149.1 kB / 413.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.1907, allocations: 375.9 kB / 414.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1907, allocations: 0 / 414.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1908, allocations: 0 / 414.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1908, allocations: 0 / 414.1 MB, free: 21.64 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001179/0.1919, allocations: 0.6748 MB / 414.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.192, allocations: 8.031 kB / 414.8 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.1927, allocations: 120.5 kB / 414.9 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.1929, allocations: 262.6 kB / 415.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.1929, allocations: 29.03 kB / 415.2 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.193, allocations: 28.38 kB / 415.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.1934, allocations: 340.9 kB / 415.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1934, allocations: 3.906 kB / 415.5 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.1934, allocations: 12 kB / 415.5 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1934, allocations: 12 kB / 415.5 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.1938, allocations: 242.5 kB / 415.8 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.1953, allocations: 1.443 MB / 417.2 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.1957, allocations: 0.6983 MB / 417.9 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.1959, allocations: 108.2 kB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.196, allocations: 170.2 kB / 418.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.196, allocations: 42.55 kB / 418.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.196, allocations: 0 / 418.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001006/0.197, allocations: 495.8 kB / 418.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.1971, allocations: 63.34 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1972, allocations: 175.2 kB / 419 MB, free: 16.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.1972, allocations: 29.7 kB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.784e-05/0.1973, allocations: 183.9 kB / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.1973, allocations: 74.81 kB / 419.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.1974, allocations: 8 kB / 419.2 MB, free: 16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.1974, allocations: 326.8 kB / 419.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.496e-05/0.1975, allocations: 68.55 kB / 419.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.1976, allocations: 133 kB / 419.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.1979, allocations: 208.1 kB / 420 MB, free: 15.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1979, allocations: 0 / 420 MB, free: 15.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000447/0.1983, allocations: 332.6 kB / 420.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1983, allocations: 6.5 kB / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.1984, allocations: 4 kB / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002626/0.1986, allocations: 72.81 kB / 420.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.1988, allocations: 43.91 kB / 420.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.2001, allocations: 1.847 MB / 422.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.2003, allocations: 19.75 kB / 422.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.2003, allocations: 12.03 kB / 422.3 MB, free: 12.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.2004, allocations: 157.7 kB / 422.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.2004, allocations: 15.81 kB / 422.5 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004515/0.2009, allocations: 288.1 kB / 422.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2009, allocations: 7.938 kB / 422.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2009, allocations: 0 / 422.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.2009, allocations: 0 / 422.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007177/0.2016, allocations: 0.6939 MB / 423.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2017, allocations: 0 / 423.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.2018, allocations: 23.98 kB / 423.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001967/0.202, allocations: 72.75 kB / 423.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.202, allocations: 0 / 423.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.2032, allocations: 1.835 MB / 425.4 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2033, allocations: 0 / 425.4 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.2038, allocations: 439.7 kB / 425.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.2038, allocations: 116.9 kB / 425.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.2039, allocations: 8 kB / 425.9 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.204, allocations: 8.281 kB / 425.9 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.204, allocations: 15.97 kB / 426 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.204, allocations: 12 kB / 426 MB, free: 8.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.712e-05/0.2041, allocations: 131.4 kB / 426.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2041, allocations: 0 / 426.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000399/0.2045, allocations: 95.69 kB / 426.2 MB, free: 8.613 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001686/0.2047, allocations: 135.1 kB / 426.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004602/0.2051, allocations: 355.2 kB / 426.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2052, allocations: 3.938 kB / 426.7 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.2054, allocations: 246.3 kB / 426.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.2057, allocations: 22.41 kB / 426.9 MB, free: 7.836 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007471/0.2065, allocations: 0.7353 MB / 427.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2066, allocations: 0.7558 MB / 428.4 MB, free: 6.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.2067, allocations: 19.42 kB / 428.4 MB, free: 6.266 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.2067, allocations: 0 / 428.4 MB, free: 6.266 MB / 298.7 MB Notification: Performance of Templates: time 0.004256/0.211, allocations: 3.976 MB / 432.4 MB, free: 2.293 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches