Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 179.3 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.224/1.224, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007624/0.0007625, allocations: 85.34 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002952, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.189, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003275/0.1923, allocations: 4.504 MB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005592/0.1979, allocations: 5.935 MB / 385 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/0.1983, allocations: 37.72 kB / 385 MB, free: 37.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008286/0.1991, allocations: 400 kB / 385.4 MB, free: 36.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.2003, allocations: 0.6365 MB / 386.1 MB, free: 36.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.2008, allocations: 303.8 kB / 386.3 MB, free: 36.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002005/0.2028, allocations: 1.866 MB / 388.2 MB, free: 35.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.2031, allocations: 157.7 kB / 388.4 MB, free: 34.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.2034, allocations: 298.5 kB / 388.7 MB, free: 34.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.2036, allocations: 306 kB / 389 MB, free: 34.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.2037, allocations: 16 kB / 389 MB, free: 34.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006549/0.2043, allocations: 423.6 kB / 389.4 MB, free: 33.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.916e-05/0.2044, allocations: 95.33 kB / 389.5 MB, free: 33.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.2045, allocations: 213.1 kB / 389.7 MB, free: 33.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006141/0.2051, allocations: 0.9154 MB / 390.6 MB, free: 32.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2051, allocations: 0 / 390.6 MB, free: 32.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2051, allocations: 3.938 kB / 390.6 MB, free: 32.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.2052, allocations: 0 / 390.6 MB, free: 32.71 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.001284/0.2065, allocations: 1.297 MB / 391.9 MB, free: 31.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.905e-05/0.2065, allocations: 12.03 kB / 391.9 MB, free: 31.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2066, allocations: 130.4 kB / 392 MB, free: 31.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008016/0.2074, allocations: 0.8008 MB / 392.8 MB, free: 30.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.2074, allocations: 16.44 kB / 392.9 MB, free: 30.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.019e-05/0.2075, allocations: 31.92 kB / 392.9 MB, free: 30.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.2079, allocations: 306.6 kB / 393.2 MB, free: 30.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2079, allocations: 0 / 393.2 MB, free: 30.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.208, allocations: 8 kB / 393.2 MB, free: 30 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.208, allocations: 8 kB / 393.2 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.2083, allocations: 225.8 kB / 393.4 MB, free: 29.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.2097, allocations: 1.134 MB / 394.6 MB, free: 28.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.21, allocations: 254.4 kB / 394.8 MB, free: 28.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004784/0.2105, allocations: 296.8 kB / 395.1 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006917/0.2112, allocations: 0.7671 MB / 395.9 MB, free: 27.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.2112, allocations: 30.56 kB / 395.9 MB, free: 27.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.683e-06/0.2112, allocations: 0 / 395.9 MB, free: 27.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002271/0.2135, allocations: 1.584 MB / 397.5 MB, free: 25.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.2136, allocations: 114.8 kB / 397.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006858/0.2143, allocations: 0.9184 MB / 398.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.2143, allocations: 33.7 kB / 398.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.2145, allocations: 361.5 kB / 398.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.014e-05/0.2145, allocations: 126.1 kB / 399 MB, free: 23.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-05/0.2146, allocations: 8 kB / 399 MB, free: 23.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.942e-05/0.2146, allocations: 326 kB / 399.3 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.2148, allocations: 124.6 kB / 399.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.215, allocations: 159.8 kB / 399.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.2153, allocations: 181.7 kB / 399.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2153, allocations: 0 / 399.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006963/0.216, allocations: 0.5558 MB / 400.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.216, allocations: 41.69 kB / 400.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.216, allocations: 16 kB / 400.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002015/0.2162, allocations: 69.67 kB / 400.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.2165, allocations: 43.92 kB / 400.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.2179, allocations: 2.989 MB / 403.5 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.2182, allocations: 16.09 kB / 403.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/0.2182, allocations: 24.08 kB / 403.6 MB, free: 18.96 MB / 298.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.0002662/0.2185, allocations: 263.7 kB / 403.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.462e-05/0.2186, allocations: 126.5 kB / 403.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.2197, allocations: 0.6686 MB / 404.6 MB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2197, allocations: 12 kB / 404.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2197, allocations: 4 kB / 404.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2197, allocations: 3.984 kB / 404.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.2202, allocations: 0.6082 MB / 405.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/0.2202, allocations: 19.95 kB / 405.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2204, allocations: 35.97 kB / 405.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.2206, allocations: 69.61 kB / 405.4 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.2206, allocations: 20 kB / 405.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.2221, allocations: 2.992 MB / 408.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2221, allocations: 0 / 408.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.2231, allocations: 0.8596 MB / 409.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.2234, allocations: 275.5 kB / 409.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.287e-05/0.2235, allocations: 8 kB / 409.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.2238, allocations: 12 kB / 409.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.052e-05/0.2239, allocations: 39.84 kB / 409.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.2239, allocations: 24.06 kB / 409.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005736/0.2245, allocations: 0.6178 MB / 410.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2245, allocations: 0 / 410.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006518/0.2251, allocations: 219.9 kB / 410.4 MB, free: 11.7 MB / 298.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.000399/0.2255, allocations: 302.8 kB / 410.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008274/0.2264, allocations: 0.7885 MB / 411.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2264, allocations: 3.938 kB / 411.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004622/0.2269, allocations: 0.6169 MB / 412.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.2273, allocations: 112.7 kB / 412.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.229, allocations: 1.909 MB / 414.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.2293, allocations: 1.004 MB / 415.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.336e-05/0.2294, allocations: 55.42 kB / 415.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2294, allocations: 0 / 415.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of Templates: time 0.01606/0.2454, allocations: 17.21 MB / 432.4 MB, free: 5.496 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches