Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.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.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000734/0.000734, allocations: 97.77 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.18, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003006/0.183, allocations: 4.504 MB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005114/0.1881, allocations: 6.038 MB / 418 MB, free: 17.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003571/0.1885, allocations: 39.62 kB / 418.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008219/0.1894, allocations: 398.8 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.1906, allocations: 0.6406 MB / 419.1 MB, free: 16.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006537/0.1912, allocations: 307 kB / 419.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.193, allocations: 1.931 MB / 421.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.1932, allocations: 151.2 kB / 421.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1935, allocations: 318.3 kB / 421.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.1937, allocations: 314 kB / 422.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.1938, allocations: 16 kB / 422.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007122/0.1945, allocations: 447.5 kB / 422.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.685e-05/0.1946, allocations: 91.33 kB / 422.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.1947, allocations: 213.1 kB / 422.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.1953, allocations: 0.9193 MB / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1953, allocations: 0 / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1953, allocations: 0 / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.1953, allocations: 0 / 423.8 MB, free: 11.52 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001281/0.1966, allocations: 1.309 MB / 425.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.1967, allocations: 8.031 kB / 425.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.1969, allocations: 142.4 kB / 425.2 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007711/0.1977, allocations: 0.8007 MB / 426 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1977, allocations: 20.44 kB / 426 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.1978, allocations: 24 kB / 426.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.1982, allocations: 306.7 kB / 426.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1982, allocations: 0 / 426.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.1982, allocations: 4 kB / 426.4 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1982, allocations: 8 kB / 426.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.1986, allocations: 225.8 kB / 426.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.1998, allocations: 1.138 MB / 427.7 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.2001, allocations: 250.4 kB / 428 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000365/0.2005, allocations: 292.8 kB / 428.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007167/0.2012, allocations: 0.8386 MB / 429.1 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.2013, allocations: 34.56 kB / 429.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.713e-06/0.2013, allocations: 0 / 429.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002232/0.2035, allocations: 1.578 MB / 430.7 MB, free: 4.102 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.2036, allocations: 110.8 kB / 430.8 MB, free: 3.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006762/0.2042, allocations: 0.93 MB / 431.8 MB, free: 3.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2043, allocations: 33.7 kB / 431.8 MB, free: 2.992 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.2044, allocations: 353.6 kB / 432.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.172e-05/0.2045, allocations: 134 kB / 432.3 MB, free: 2.512 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/0.2045, allocations: 4 kB / 432.3 MB, free: 2.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.021e-05/0.2046, allocations: 322 kB / 432.6 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.2048, allocations: 120.6 kB / 432.7 MB, free: 2.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.205, allocations: 175.5 kB / 432.9 MB, free: 1.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.2052, allocations: 182.9 kB / 433.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2052, allocations: 0 / 433.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007061/0.2059, allocations: 0.5601 MB / 433.6 MB, free: 1.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.206, allocations: 37.7 kB / 433.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/0.206, allocations: 19.98 kB / 433.7 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.2062, allocations: 69.66 kB / 433.7 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2064, allocations: 43.97 kB / 433.8 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.2084, allocations: 2.981 MB / 436.8 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.2087, allocations: 16.02 kB / 436.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.2087, allocations: 20 kB / 436.8 MB, free: 13.65 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003355/0.2091, allocations: 260.1 kB / 437 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.2092, allocations: 122.5 kB / 437.2 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.2104, allocations: 0.6879 MB / 437.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2104, allocations: 4 kB / 437.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2104, allocations: 0 / 437.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2105, allocations: 0 / 437.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006246/0.2111, allocations: 0.6121 MB / 438.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.086e-05/0.2111, allocations: 15.95 kB / 438.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.2113, allocations: 39.97 kB / 438.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.2115, allocations: 69.67 kB / 438.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.2115, allocations: 15.98 kB / 438.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.2136, allocations: 2.996 MB / 441.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2136, allocations: 0 / 441.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.2148, allocations: 0.8708 MB / 442.5 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002976/0.2151, allocations: 271.5 kB / 442.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.048e-05/0.2152, allocations: 12.19 kB / 442.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.2154, allocations: 15.98 kB / 442.8 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.2155, allocations: 35.92 kB / 442.8 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.2156, allocations: 19.98 kB / 442.8 MB, free: 7.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006589/0.2162, allocations: 0.6217 MB / 443.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2162, allocations: 0 / 443.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007046/0.2169, allocations: 227.9 kB / 443.7 MB, free: 6.375 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * 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 (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004496/0.2174, allocations: 295 kB / 444 MB, free: 6.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009997/0.2184, allocations: 0.7777 MB / 444.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2184, allocations: 0 / 444.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006285/0.2191, allocations: 0.6165 MB / 445.4 MB, free: 4.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.2196, allocations: 115.3 kB / 445.5 MB, free: 4.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.2218, allocations: 1.902 MB / 447.4 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/0.2223, allocations: 1.004 MB / 448.4 MB, free: 1.473 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2224, allocations: 51.42 kB / 448.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of SimCode: time 1.693e-06/0.2224, allocations: 3.938 kB / 448.4 MB, free: 1.418 MB / 314.7 MB Notification: Performance of Templates: time 0.01801/0.2405, allocations: 17.28 MB / 465.7 MB, free: 132 kB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches