Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008438/0.0008439, allocations: 179.3 kB / 16.71 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 225.7 MB / 243.2 MB, free: 8.473 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007909/0.000791, allocations: 90.64 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002385, allocations: 4 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1902, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003046/0.1933, allocations: 4.496 MB / 409.1 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005296/0.1986, allocations: 8.281 MB / 417.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002806/0.1989, allocations: 31.75 kB / 417.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008361/0.1998, allocations: 466.5 kB / 417.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.2008, allocations: 0.6834 MB / 418.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.2014, allocations: 327 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001785/0.2032, allocations: 1.915 MB / 420.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.2034, allocations: 159.4 kB / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.2037, allocations: 330.1 kB / 421.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.2039, allocations: 329.7 kB / 421.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.816e-05/0.204, allocations: 16 kB / 421.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006736/0.2047, allocations: 443.5 kB / 422 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.799e-05/0.2047, allocations: 99.2 kB / 422.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.205, allocations: 462.7 kB / 422.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00083/0.2058, allocations: 1.214 MB / 423.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2059, allocations: 4 kB / 423.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2059, allocations: 0 / 423.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.2059, allocations: 0 / 423.8 MB, free: 11.6 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.001183/0.2071, allocations: 1.285 MB / 425.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.2071, allocations: 8.031 kB / 425.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.2072, allocations: 134.3 kB / 425.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007808/0.208, allocations: 0.8619 MB / 426.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.208, allocations: 12.44 kB / 426.1 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.2081, allocations: 24 kB / 426.1 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.2085, allocations: 306.6 kB / 426.4 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2085, allocations: 0 / 426.4 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.2085, allocations: 16 kB / 426.4 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2086, allocations: 4 kB / 426.4 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.2089, allocations: 229.7 kB / 426.6 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.2102, allocations: 1.126 MB / 427.8 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.2105, allocations: 247.8 kB / 428 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.2109, allocations: 306.1 kB / 428.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006636/0.2116, allocations: 0.7594 MB / 429.1 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.2116, allocations: 38.56 kB / 429.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.823e-06/0.2116, allocations: 0 / 429.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002226/0.2138, allocations: 1.577 MB / 430.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.2139, allocations: 110.8 kB / 430.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.2146, allocations: 0.9222 MB / 431.7 MB, free: 3.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.2146, allocations: 29.7 kB / 431.7 MB, free: 3.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.2148, allocations: 357.5 kB / 432.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.089e-05/0.2149, allocations: 130.1 kB / 432.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.2149, allocations: 11.94 kB / 432.2 MB, free: 2.668 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.574e-05/0.2149, allocations: 325.9 kB / 432.5 MB, free: 2.344 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.2151, allocations: 128.6 kB / 432.7 MB, free: 2.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.2154, allocations: 167.8 kB / 432.8 MB, free: 2.039 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.2164, allocations: 0.7374 MB / 433.6 MB, free: 1.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2165, allocations: 4 kB / 433.6 MB, free: 1.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000684/0.2172, allocations: 0.5657 MB / 434.1 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.2172, allocations: 41.69 kB / 434.2 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.2172, allocations: 12 kB / 434.2 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.2174, allocations: 65.67 kB / 434.3 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2176, allocations: 47.92 kB / 434.3 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.2196, allocations: 2.985 MB / 437.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.2199, allocations: 20.03 kB / 437.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.22, allocations: 23.98 kB / 437.3 MB, free: 13.2 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003337/0.2203, allocations: 252 kB / 437.6 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.2204, allocations: 122.5 kB / 437.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.2217, allocations: 0.6646 MB / 438.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2217, allocations: 7.938 kB / 438.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.2217, allocations: 0 / 438.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.2217, allocations: 11.92 kB / 438.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006393/0.2224, allocations: 0.6238 MB / 439 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.2224, allocations: 8 kB / 439 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.2226, allocations: 39.97 kB / 439 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.2228, allocations: 69.67 kB / 439.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.2228, allocations: 12 kB / 439.1 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.2248, allocations: 2.989 MB / 442.1 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.2248, allocations: 16.08 kB / 442.1 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.226, allocations: 0.8664 MB / 443 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003042/0.2263, allocations: 279.5 kB / 443.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.905e-05/0.2264, allocations: 8 kB / 443.3 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.2267, allocations: 19.88 kB / 443.3 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.212e-05/0.2268, allocations: 31.95 kB / 443.3 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/0.2268, allocations: 16 kB / 443.3 MB, free: 6.785 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006719/0.2275, allocations: 0.6179 MB / 444 MB, free: 6.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2275, allocations: 0 / 444 MB, free: 6.164 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006664/0.2282, allocations: 223.9 kB / 444.2 MB, free: 5.945 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004801/0.2287, allocations: 302.9 kB / 444.5 MB, free: 5.637 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009949/0.2297, allocations: 0.7911 MB / 445.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2297, allocations: 0 / 445.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.2303, allocations: 0.6128 MB / 445.9 MB, free: 4.109 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.2308, allocations: 104.8 kB / 446 MB, free: 4.008 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.233, allocations: 1.991 MB / 448 MB, free: 1.984 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.2335, allocations: 0.9998 MB / 449 MB, free: 0.957 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003169/0.2338, allocations: 93.64 kB / 449.1 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/0.2339, allocations: 51.42 kB / 449.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2339, allocations: 0 / 449.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of Templates: time 0.01488/0.2488, allocations: 8.309 MB / 457.4 MB, free: 8.527 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches