Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009601/0.0009601, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 226.6 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007698/0.0007698, allocations: 100.4 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002318, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1826, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001426/0.1841, allocations: 1.702 MB / 409.7 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006408/0.1847, allocations: 0.5808 MB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.338e-05/0.1848, allocations: 4 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.1849, allocations: 19.84 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.687e-05/0.185, allocations: 32.33 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.1852, allocations: 81.86 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.1853, allocations: 167.3 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.1855, allocations: 41.98 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.1856, allocations: 75.64 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.1857, allocations: 69.16 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.1857, allocations: 8 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.1858, allocations: 15.98 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.1858, allocations: 37.16 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.1859, allocations: 85.42 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.186, allocations: 132.6 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.186, allocations: 4.781 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.186, allocations: 0 / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.186, allocations: 0 / 411.1 MB, free: 24.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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005402/0.1866, allocations: 450.7 kB / 411.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.1866, allocations: 15.97 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003207/0.1869, allocations: 54.47 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.187, allocations: 193.8 kB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1871, allocations: 8.375 kB / 411.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.1871, allocations: 8.375 kB / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.1873, allocations: 172.2 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1874, allocations: 0 / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.1874, allocations: 0 / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.1874, allocations: 4 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.1876, allocations: 95.94 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007003/0.1883, allocations: 0.5148 MB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.1886, allocations: 110.5 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.1887, allocations: 68.83 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.1888, allocations: 4 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.1888, allocations: 34.5 kB / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.1888, allocations: 0 / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003848/0.1892, allocations: 153.7 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.1892, allocations: 102.8 kB / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.161e-05/0.1893, allocations: 162.4 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.1893, allocations: 25.7 kB / 413.2 MB, free: 22.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.1894, allocations: 123.7 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.1894, allocations: 23.7 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-06/0.1894, allocations: 8 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.606e-05/0.1895, allocations: 314.8 kB / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1896, allocations: 39.97 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1897, allocations: 84.27 kB / 413.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.1899, allocations: 102.5 kB / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1899, allocations: 0 / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002788/0.1902, allocations: 153.5 kB / 414.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1902, allocations: 7.938 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1902, allocations: 0 / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1903, allocations: 7.938 kB / 414.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.1908, allocations: 87.95 kB / 414.2 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009209/0.1917, allocations: 1.402 MB / 415.6 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.1919, allocations: 19.92 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1919, allocations: 8.109 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.16e-05/0.192, allocations: 129.7 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.192, allocations: 15.81 kB / 415.7 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.1924, allocations: 159.2 kB / 415.9 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1924, allocations: 4 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.31e-07/0.1924, allocations: 7.875 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1924, allocations: 0 / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.193, allocations: 472 kB / 416.4 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.193, allocations: 0 / 416.4 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.1932, allocations: 23.97 kB / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002195/0.1934, allocations: 44.8 kB / 416.4 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.1934, allocations: 0 / 416.4 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006494/0.1941, allocations: 1.3 MB / 417.7 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1941, allocations: 48 / 417.7 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004683/0.1946, allocations: 305.1 kB / 418 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.581e-05/0.1946, allocations: 92.95 kB / 418.1 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.1946, allocations: 0 / 418.1 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.1948, allocations: 20.05 kB / 418.1 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.1948, allocations: 11.98 kB / 418.1 MB, free: 16.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.1948, allocations: 4 kB / 418.2 MB, free: 16.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.585e-05/0.1949, allocations: 119.9 kB / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1949, allocations: 0 / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00026/0.1952, allocations: 35.94 kB / 418.3 MB, free: 16.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * 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 (7): * Single equations (assignments): 6 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 8.674e-05/0.1952, allocations: 107.2 kB / 418.4 MB, free: 16.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005731/0.1958, allocations: 139.9 kB / 418.5 MB, free: 16.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1958, allocations: 4 kB / 418.5 MB, free: 16.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.1961, allocations: 166.6 kB / 418.7 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.1964, allocations: 10.23 kB / 418.7 MB, free: 16.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.1976, allocations: 0.6424 MB / 419.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.1977, allocations: 0.7199 MB / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.053e-05/0.1977, allocations: 11.44 kB / 420.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1977, allocations: 0 / 420.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of Templates: time 0.002839/0.2006, allocations: 2.169 MB / 422.3 MB, free: 12.73 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches