Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 95.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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=10000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.552e-06/1.552e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.876e-05, allocations: 10.25 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.00892/0.008949, allocations: 6.027 MB / 273.4 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00432/0.01327, allocations: 2.079 MB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004697/0.01374, allocations: 23.88 kB / 275.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.016, allocations: 0.7809 MB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001885/0.01789, allocations: 0.7569 MB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.01897, allocations: 0.4907 MB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.02053, allocations: 1.21 MB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.02175, allocations: 0.7492 MB / 279.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009432/0.02269, allocations: 0.6782 MB / 280.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006991/0.02339, allocations: 426.7 kB / 280.5 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.02357, allocations: 108 kB / 280.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005663/0.02413, allocations: 251.7 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.02441, allocations: 259.1 kB / 281.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000466/0.02487, allocations: 387 kB / 281.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002088/0.02696, allocations: 1.499 MB / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.02696, allocations: 0 / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.02696, allocations: 0 / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.02698, allocations: 0 / 283 MB, free: 6.926 MB / 266.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.003715/0.03069, allocations: 2.004 MB / 285 MB, free: 4.863 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.03073, allocations: 8.922 kB / 285 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.03306, allocations: 0.4959 MB / 285.5 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009997/0.03406, allocations: 0.5114 MB / 286 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.728e-05/0.03415, allocations: 78.38 kB / 286.1 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.03432, allocations: 104.4 kB / 286.2 MB, free: 3.641 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.03636, allocations: 1.145 MB / 287.4 MB, free: 2.438 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.271e-05/0.03639, allocations: 4.141 kB / 287.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.0365, allocations: 48.11 kB / 287.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.03652, allocations: 28 kB / 287.4 MB, free: 2.359 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.03828, allocations: 0.7886 MB / 288.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/0.1667, allocations: 3.524 MB / 291.8 MB, free: 30.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/0.1685, allocations: 0.8687 MB / 292.6 MB, free: 30.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008055/0.1694, allocations: 415 kB / 293 MB, free: 30.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.149e-05/0.1694, allocations: 20.75 kB / 293.1 MB, free: 30.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008409/0.1703, allocations: 0.6085 MB / 293.7 MB, free: 29.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=84): time 2.485e-06/0.1703, allocations: 0 / 293.7 MB, free: 29.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=84): time 0.004298/0.1746, allocations: 1.481 MB / 295.1 MB, free: 29.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.1747, allocations: 197.3 kB / 295.3 MB, free: 29.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.1752, allocations: 0.5643 MB / 295.9 MB, free: 28.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/0.1753, allocations: 42.92 kB / 295.9 MB, free: 28.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.1755, allocations: 493 kB / 296.4 MB, free: 28.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1757, allocations: 306.6 kB / 296.7 MB, free: 28.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.176, allocations: 184.9 kB / 296.9 MB, free: 28.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1761, allocations: 0.58 MB / 297.5 MB, free: 27.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/0.1766, allocations: 241.8 kB / 297.7 MB, free: 27.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.1772, allocations: 0.6538 MB / 298.4 MB, free: 26.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.1782, allocations: 0.7923 MB / 299.2 MB, free: 26.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1782, allocations: 3.062 kB / 299.2 MB, free: 26.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00183/0.1801, allocations: 1.028 MB / 300.2 MB, free: 25.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1801, allocations: 7.375 kB / 300.2 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1801, allocations: 9.75 kB / 300.2 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.1812, allocations: 319.9 kB / 300.5 MB, free: 25.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005357/0.1817, allocations: 146.7 kB / 300.7 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/0.1865, allocations: 5.842 MB / 306.5 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/0.187, allocations: 95.92 kB / 306.6 MB, free: 20.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.1871, allocations: 34.33 kB / 306.6 MB, free: 20.93 MB / 266.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,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,iAC.mean2.y_last,$PRE.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.0003558/0.1875, allocations: 284.7 kB / 306.9 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.1876, allocations: 102.5 kB / 307 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.1894, allocations: 0.9283 MB / 307.9 MB, free: 20.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1894, allocations: 11.59 kB / 308 MB, free: 20.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1894, allocations: 4.812 kB / 308 MB, free: 20.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.1894, allocations: 3.891 kB / 308 MB, free: 20.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.192, allocations: 1.834 MB / 309.8 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.192, allocations: 3.938 kB / 309.8 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.1924, allocations: 92.75 kB / 309.9 MB, free: 19.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009181/0.1933, allocations: 311.3 kB / 310.2 MB, free: 19.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.1934, allocations: 22.94 kB / 310.2 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004087/0.1975, allocations: 5.81 MB / 316 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1975, allocations: 0 / 316 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.1994, allocations: 1.391 MB / 317.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002428/0.1996, allocations: 135.3 kB / 317.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/0.1997, allocations: 16 kB / 317.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.2001, allocations: 39.97 kB / 317.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.2003, allocations: 76.8 kB / 317.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/0.2003, allocations: 29.08 kB / 317.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.2006, allocations: 355 kB / 318.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2006, allocations: 4 kB / 318.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009861/0.2016, allocations: 311.3 kB / 318.4 MB, free: 11.25 MB / 266.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,iDC2.mean.x,iAC.mean2.x,iAC.mean1.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off,iAC.mean2.y_last,iAC.mean1.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.0002309/0.2018, allocations: 156.7 kB / 318.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.2033, allocations: 1.197 MB / 319.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2033, allocations: 0 / 319.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008933/0.2042, allocations: 0.8576 MB / 320.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.2048, allocations: 119.2 kB / 320.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.207, allocations: 1.632 MB / 322.3 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.2073, allocations: 395.6 kB / 322.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002558/0.2076, allocations: 81.12 kB / 322.8 MB, free: 6.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.2077, allocations: 52.5 kB / 322.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.2077, allocations: 0 / 322.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of Templates: time 0.02365/0.2314, allocations: 11.63 MB / 334.5 MB, free: 11.24 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 240] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.137577769928612]