Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001936/0.001936, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002664, allocations: 67.75 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1574, allocations: 50.53 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004092/0.1615, allocations: 2.047 MB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.1629, allocations: 0.6622 MB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.661e-05/0.163, allocations: 4 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.77e-05/0.1631, allocations: 15.8 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.1632, allocations: 51.56 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.1637, allocations: 95.8 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.164, allocations: 183.3 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.1642, allocations: 56.5 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.1644, allocations: 91.62 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.1646, allocations: 75.69 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.1646, allocations: 16 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.728e-05/0.1647, allocations: 24 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.115e-05/0.1648, allocations: 39.83 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.1649, allocations: 79.59 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.1652, allocations: 179.6 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.1652, allocations: 4 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1652, allocations: 0 / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1652, allocations: 0 / 361.1 MB, free: 10.41 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009797/0.1662, allocations: 478.7 kB / 361.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.1663, allocations: 8.031 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.1667, allocations: 52.72 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.167, allocations: 227.2 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.1671, allocations: 8.375 kB / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.1671, allocations: 12.38 kB / 361.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.1675, allocations: 156.3 kB / 362.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1675, allocations: 4 kB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.1675, allocations: 4 kB / 362.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1675, allocations: 0 / 362.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.1679, allocations: 99.94 kB / 362.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.169, allocations: 0.4993 MB / 362.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.1693, allocations: 102.5 kB / 362.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.1695, allocations: 72.77 kB / 362.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.1696, allocations: 4.141 kB / 362.8 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.1696, allocations: 38.5 kB / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.1696, allocations: 0 / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005071/0.1701, allocations: 141.5 kB / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.1703, allocations: 106.8 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.1705, allocations: 164.7 kB / 363.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.1705, allocations: 29.7 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.639e-05/0.1706, allocations: 115.9 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.1707, allocations: 31.55 kB / 363.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.1707, allocations: 29.64 kB / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1709, allocations: 326.8 kB / 363.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.171, allocations: 39.92 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.1712, allocations: 80.27 kB / 363.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.1715, allocations: 98.56 kB / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1715, allocations: 0 / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003433/0.1718, allocations: 145.8 kB / 364.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.1719, allocations: 11.88 kB / 364.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1719, allocations: 4 kB / 364.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1719, allocations: 0 / 364.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005889/0.1725, allocations: 87.98 kB / 364.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001708/0.1742, allocations: 1.504 MB / 365.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.1744, allocations: 24.14 kB / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.1744, allocations: 7.938 kB / 365.8 MB, free: 5.332 MB / 302.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.1746, allocations: 121.8 kB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.1746, allocations: 11.91 kB / 365.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005218/0.1752, allocations: 151.2 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1752, allocations: 4 kB / 366.1 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1752, allocations: 3.938 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.1752, allocations: 3.938 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008673/0.1761, allocations: 471.9 kB / 366.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.1761, allocations: 4 kB / 366.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1762, allocations: 23.92 kB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.1765, allocations: 32.86 kB / 366.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.1765, allocations: 4 kB / 366.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001379/0.1779, allocations: 1.387 MB / 368 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1779, allocations: 3.938 kB / 368 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000617/0.1786, allocations: 297.1 kB / 368.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.1786, allocations: 89.03 kB / 368.4 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.1787, allocations: 15.86 kB / 368.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.1789, allocations: 16.06 kB / 368.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.1789, allocations: 11.98 kB / 368.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1789, allocations: 0 / 368.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.1791, allocations: 123.4 kB / 368.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1791, allocations: 0 / 368.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.1794, allocations: 43.84 kB / 368.6 MB, free: 2.277 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001827/0.1796, allocations: 107.2 kB / 368.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.1803, allocations: 135.8 kB / 368.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1804, allocations: 0 / 368.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.1807, allocations: 170.7 kB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.181, allocations: 14.66 kB / 369 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.1827, allocations: 0.521 MB / 369.5 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1831, allocations: 0.7119 MB / 370.2 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.276e-05/0.1831, allocations: 20.53 kB / 370.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.165e-05/0.1832, allocations: 15.44 kB / 370.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1832, allocations: 0 / 370.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of Templates: time 0.2046/0.3878, allocations: 1.635 MB / 371.9 MB, free: 19.3 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches