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.001766/0.001766, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.6 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007375/0.0007375, allocations: 97.22 kB / 296.8 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000217/0.0002171, allocations: 4 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2108, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003488/0.2143, allocations: 4.504 MB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005996/0.2204, allocations: 6.042 MB / 418.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005658/0.221, allocations: 39.69 kB / 418.6 MB, free: 17.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.2221, allocations: 402.8 kB / 419 MB, free: 16.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001675/0.2238, allocations: 0.6406 MB / 419.7 MB, free: 16.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008326/0.2246, allocations: 303 kB / 420 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002208/0.2268, allocations: 1.933 MB / 421.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.2271, allocations: 159.8 kB / 422 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.2275, allocations: 310.3 kB / 422.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.2277, allocations: 310 kB / 422.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.2278, allocations: 16 kB / 422.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008548/0.2287, allocations: 467.5 kB / 423.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.49e-05/0.2287, allocations: 87.31 kB / 423.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.229, allocations: 431.2 kB / 423.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006719/0.2297, allocations: 0.9193 MB / 424.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2297, allocations: 4 kB / 424.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2297, allocations: 0 / 424.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.2297, allocations: 4 kB / 424.6 MB, free: 11.16 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.001293/0.231, allocations: 1.289 MB / 425.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2311, allocations: 8.031 kB / 425.9 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.2313, allocations: 146.3 kB / 426 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008494/0.2322, allocations: 0.8581 MB / 426.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2322, allocations: 16.44 kB / 426.9 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2323, allocations: 24 kB / 426.9 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.2327, allocations: 302.7 kB / 427.2 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2327, allocations: 0 / 427.2 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.2327, allocations: 15.94 kB / 427.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2328, allocations: 4 kB / 427.2 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.2331, allocations: 233.7 kB / 427.4 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.2344, allocations: 1.13 MB / 428.6 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.2348, allocations: 246.4 kB / 428.8 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.2352, allocations: 300.8 kB / 429.1 MB, free: 6.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006785/0.2358, allocations: 0.8307 MB / 429.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.2359, allocations: 42.56 kB / 430 MB, free: 5.375 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 2.084e-06/0.2359, allocations: 0 / 430 MB, free: 5.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002352/0.2382, allocations: 1.573 MB / 431.5 MB, free: 3.703 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.2383, allocations: 110.8 kB / 431.7 MB, free: 3.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007532/0.2391, allocations: 0.9261 MB / 432.6 MB, free: 2.637 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2391, allocations: 29.7 kB / 432.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.2393, allocations: 353.6 kB / 433 MB, free: 2.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.634e-05/0.2393, allocations: 134 kB / 433.1 MB, free: 2.121 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.2394, allocations: 4 kB / 433.1 MB, free: 2.117 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.253e-05/0.2394, allocations: 325.9 kB / 433.4 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.2396, allocations: 132.5 kB / 433.5 MB, free: 1.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.2399, allocations: 163.8 kB / 433.7 MB, free: 1.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.241, allocations: 0.7486 MB / 434.4 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.241, allocations: 4 kB / 434.5 MB, free: 0.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000738/0.2417, allocations: 0.5542 MB / 435 MB, free: 136 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.2418, allocations: 41.69 kB / 435 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.2418, allocations: 12 kB / 435.1 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.242, allocations: 73.75 kB / 435.1 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.2423, allocations: 51.86 kB / 435.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002373/0.2447, allocations: 2.994 MB / 438.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.245, allocations: 12.03 kB / 438.2 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.999e-05/0.245, allocations: 23.98 kB / 438.2 MB, free: 12.64 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: D1.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 D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D2.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.0004401/0.2455, allocations: 255.8 kB / 438.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.2456, allocations: 122.5 kB / 438.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.2469, allocations: 0.6724 MB / 439.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.2469, allocations: 4 kB / 439.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.247, allocations: 3.938 kB / 439.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.247, allocations: 3.984 kB / 439.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000688/0.2477, allocations: 0.616 MB / 439.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/0.2477, allocations: 12 kB / 439.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.2479, allocations: 43.91 kB / 439.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001841/0.2481, allocations: 69.67 kB / 440 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.2481, allocations: 12 kB / 440 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/0.2503, allocations: 2.997 MB / 443 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2503, allocations: 3.938 kB / 443 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.2516, allocations: 0.8595 MB / 443.9 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.252, allocations: 275.5 kB / 444.1 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/0.2521, allocations: 11.94 kB / 444.2 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.2523, allocations: 15.98 kB / 444.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.2524, allocations: 31.91 kB / 444.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.2525, allocations: 23.92 kB / 444.2 MB, free: 6.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00079/0.2533, allocations: 0.6139 MB / 444.8 MB, free: 5.613 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2533, allocations: 0 / 444.8 MB, free: 5.613 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008142/0.2542, allocations: 223.9 kB / 445.1 MB, free: 5.395 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.0005504/0.2547, allocations: 307.1 kB / 445.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.2558, allocations: 0.7816 MB / 446.1 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2558, allocations: 4 kB / 446.1 MB, free: 4.234 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.2565, allocations: 0.6166 MB / 446.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.2571, allocations: 106.5 kB / 446.9 MB, free: 3.453 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.2594, allocations: 1.912 MB / 448.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.2599, allocations: 0.9998 MB / 449.8 MB, free: 488 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.26, allocations: 51.42 kB / 449.8 MB, free: 436 kB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.26, allocations: 0 / 449.8 MB, free: 436 kB / 314.7 MB Notification: Performance of Templates: time 0.02174/0.2818, allocations: 17.27 MB / 467.1 MB, free: 15.15 MB / 346.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