Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.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.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008144/0.0008144, allocations: 179.4 kB / 16.71 MB, free: 4.969 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.178/1.178, allocations: 225.7 MB / 243.2 MB, free: 10.2 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.0007105/0.0007106, allocations: 90.56 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002218, allocations: 11.94 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1777, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.003883/0.1816, allocations: 5.402 MB / 410 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.1839, allocations: 2.84 MB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.1842, allocations: 23.94 kB / 412.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004193/0.1846, allocations: 242.7 kB / 413.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.1857, allocations: 1.211 MB / 414.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006451/0.1864, allocations: 0.6666 MB / 415 MB, free: 20.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006527/0.1871, allocations: 1.109 MB / 416.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.1883, allocations: 1.422 MB / 417.5 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.1885, allocations: 366.4 kB / 417.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003622/0.1889, allocations: 473.7 kB / 418.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.45e-05/0.189, allocations: 48 kB / 418.4 MB, free: 17.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003246/0.1893, allocations: 207.8 kB / 418.6 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1894, allocations: 171.2 kB / 418.7 MB, free: 16.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002773/0.1897, allocations: 0.4912 MB / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007958/0.1905, allocations: 1.343 MB / 420.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1905, allocations: 0 / 420.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1905, allocations: 0 / 420.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1906, allocations: 0 / 420.6 MB, free: 14.79 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002057/0.1926, allocations: 1.249 MB / 421.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.1927, allocations: 12.02 kB / 421.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001905/0.1946, allocations: 367.3 kB / 422.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.1952, allocations: 0.5656 MB / 422.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.1953, allocations: 78.38 kB / 422.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.1954, allocations: 96.38 kB / 422.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.1968, allocations: 1.02 MB / 423.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.1968, allocations: 7.906 kB / 423.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.626e-05/0.1969, allocations: 40 kB / 424 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.1969, allocations: 24 kB / 424 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1983, allocations: 0.8628 MB / 424.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.202, allocations: 3.573 MB / 428.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.2036, allocations: 1.904 MB / 430.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007006/0.2043, allocations: 478.4 kB / 430.8 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.621e-05/0.2044, allocations: 93.75 kB / 430.9 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006639/0.2051, allocations: 0.493 MB / 431.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 2.425e-06/0.2051, allocations: 0 / 431.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.003585/0.2087, allocations: 1.725 MB / 433.1 MB, free: 1.598 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2087, allocations: 192.9 kB / 433.3 MB, free: 1.367 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.2091, allocations: 457.9 kB / 433.8 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.2091, allocations: 41.7 kB / 433.8 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.2093, allocations: 415.7 kB / 434.2 MB, free: 460 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2094, allocations: 276.1 kB / 434.5 MB, free: 180 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/0.2094, allocations: 16 kB / 434.5 MB, free: 164 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2096, allocations: 370.8 kB / 434.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.2101, allocations: 281.8 kB / 435.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006697/0.2108, allocations: 491.2 kB / 435.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.2119, allocations: 0.7591 MB / 436.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.212, allocations: 4 kB / 436.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001789/0.2138, allocations: 1.049 MB / 437.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.2138, allocations: 11.94 kB / 437.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.2138, allocations: 4 kB / 437.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007713/0.2146, allocations: 270.6 kB / 437.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.2151, allocations: 147.9 kB / 437.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.2199, allocations: 4.387 MB / 442.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.2206, allocations: 111.2 kB / 442.3 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.864e-05/0.2206, allocations: 39.98 kB / 442.4 MB, free: 7.816 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004022/0.221, allocations: 244.4 kB / 442.6 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.054e-05/0.2211, allocations: 63.25 kB / 442.7 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.223, allocations: 0.9905 MB / 443.7 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.2231, allocations: 16.11 kB / 443.7 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.2231, allocations: 0 / 443.7 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.2231, allocations: 7.922 kB / 443.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.226, allocations: 1.929 MB / 445.6 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.226, allocations: 0 / 445.6 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.2264, allocations: 103.9 kB / 445.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000722/0.2271, allocations: 264 kB / 446 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/0.2272, allocations: 23.92 kB / 446 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.2317, allocations: 4.352 MB / 450.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2317, allocations: 0 / 450.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.234, allocations: 1.404 MB / 451.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.2342, allocations: 216 kB / 452 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.899e-05/0.2343, allocations: 20 kB / 452 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004314/0.2348, allocations: 51.97 kB / 452 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.2349, allocations: 60.91 kB / 452.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.577e-05/0.235, allocations: 31.98 kB / 452.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.2353, allocations: 306.9 kB / 452.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2353, allocations: 0 / 452.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009057/0.2362, allocations: 307.2 kB / 452.7 MB, free: 13.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000242/0.2365, allocations: 174.3 kB / 452.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.2382, allocations: 1.1 MB / 454 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2383, allocations: 3.938 kB / 454 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.2393, allocations: 0.7323 MB / 454.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006373/0.2399, allocations: 115.7 kB / 454.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.2426, allocations: 2.1 MB / 457 MB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.2431, allocations: 0.9981 MB / 458 MB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003303/0.2434, allocations: 85.31 kB / 458 MB, free: 7.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.2436, allocations: 43.44 kB / 458.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2436, allocations: 0 / 458.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of Templates: time 0.01701/0.2606, allocations: 11.37 MB / 469.5 MB, free: 12.28 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches