Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001226/0.001226, allocations: 119.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 201.8 kB / 21.4 MB, free: 1.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 251.6 MB, free: 56 kB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 67.89 kB / 365.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09849, allocations: 50.55 MB / 416 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008398/0.1069, allocations: 6.279 MB / 422.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004203/0.1112, allocations: 2.235 MB / 424.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007122/0.1119, allocations: 23.94 kB / 424.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.114, allocations: 0.746 MB / 425.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001716/0.1157, allocations: 0.6122 MB / 425.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1168, allocations: 0.53 MB / 426.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.1181, allocations: 1.199 MB / 427.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001148/0.1192, allocations: 0.8393 MB / 428.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005484/0.1198, allocations: 478.2 kB / 429 MB, free: 160 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006512/0.1204, allocations: 0.5368 MB / 429.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001576/0.1206, allocations: 112 kB / 429.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005243/0.1211, allocations: 279.7 kB / 429.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.1214, allocations: 259.1 kB / 430.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005319/0.1219, allocations: 0.5519 MB / 430.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.1235, allocations: 1.486 MB / 432.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1235, allocations: 0 / 432.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1235, allocations: 0 / 432.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1236, allocations: 0 / 432.2 MB, free: 12.93 MB / 366.1 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.002861/0.1264, allocations: 1.477 MB / 433.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.1265, allocations: 16.03 kB / 433.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002453/0.1289, allocations: 391.9 kB / 434.1 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.1298, allocations: 0.5853 MB / 434.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.523e-05/0.1299, allocations: 74.38 kB / 434.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.13, allocations: 116.4 kB / 434.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.1318, allocations: 1.016 MB / 435.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.1319, allocations: 3.953 kB / 435.8 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.272e-05/0.132, allocations: 40 kB / 435.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.132, allocations: 28 kB / 435.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1337, allocations: 0.855 MB / 436.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005118/0.1388, allocations: 3.603 MB / 440.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.1413, allocations: 1.894 MB / 442.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009601/0.1422, allocations: 463.4 kB / 442.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002101/0.1424, allocations: 182.8 kB / 442.9 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008875/0.1433, allocations: 0.4929 MB / 443.4 MB, free: 1.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 2.435e-06/0.1434, allocations: 0 / 443.4 MB, free: 1.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.1993/0.3426, allocations: 1.684 MB / 445.1 MB, free: 29.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.3427, allocations: 199.4 kB / 445.3 MB, free: 29.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.3432, allocations: 482.6 kB / 445.7 MB, free: 29.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/0.3433, allocations: 46.33 kB / 445.8 MB, free: 29.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.3435, allocations: 426.5 kB / 446.2 MB, free: 29.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.3437, allocations: 295.1 kB / 446.5 MB, free: 29.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.3439, allocations: 159.2 kB / 446.6 MB, free: 29.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.514e-05/0.344, allocations: 371.6 kB / 447 MB, free: 28.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/0.3445, allocations: 271.9 kB / 447.3 MB, free: 28.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.3451, allocations: 488.7 kB / 447.8 MB, free: 28.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.3461, allocations: 0.738 MB / 448.5 MB, free: 28.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3461, allocations: 3.469 kB / 448.5 MB, free: 28.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001853/0.348, allocations: 1.037 MB / 449.5 MB, free: 28.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.348, allocations: 6.531 kB / 449.5 MB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.348, allocations: 6 kB / 449.5 MB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008456/0.3489, allocations: 266.6 kB / 449.8 MB, free: 28.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.3494, allocations: 147 kB / 449.9 MB, free: 28.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004619/0.3541, allocations: 4.855 MB / 454.8 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/0.3547, allocations: 96.77 kB / 454.9 MB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.694e-05/0.3548, allocations: 42.03 kB / 454.9 MB, free: 25.07 MB / 366.1 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.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.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.000343/0.3552, allocations: 241.5 kB / 455.2 MB, free: 24.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3553, allocations: 72.56 kB / 455.2 MB, free: 24.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.3573, allocations: 0.9723 MB / 456.2 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.3574, allocations: 11.03 kB / 456.2 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3574, allocations: 0 / 456.2 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3574, allocations: 5.734 kB / 456.2 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.3603, allocations: 1.916 MB / 458.1 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3603, allocations: 3.484 kB / 458.2 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.3608, allocations: 95.92 kB / 458.2 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007846/0.3616, allocations: 260.6 kB / 458.5 MB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.3616, allocations: 21.5 kB / 458.5 MB, free: 24.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004174/0.3658, allocations: 4.822 MB / 463.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3658, allocations: 5.375 kB / 463.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.3682, allocations: 1.379 MB / 464.7 MB, free: 19.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002489/0.3685, allocations: 228.7 kB / 464.9 MB, free: 19.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.503e-05/0.3686, allocations: 17.56 kB / 465 MB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.369, allocations: 40.73 kB / 465 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.3692, allocations: 69.73 kB / 465.1 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.3693, allocations: 23.5 kB / 465.1 MB, free: 19.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003728/0.3697, allocations: 328.2 kB / 465.4 MB, free: 19.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3697, allocations: 4 kB / 465.4 MB, free: 19.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001083/0.3708, allocations: 308 kB / 465.7 MB, free: 19.19 MB / 366.1 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.0002636/0.371, allocations: 162.7 kB / 465.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.3729, allocations: 1.088 MB / 467 MB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3729, allocations: 4.031 kB / 467 MB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.374, allocations: 0.7363 MB / 467.7 MB, free: 18.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006109/0.3746, allocations: 128.3 kB / 467.8 MB, free: 18.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.3773, allocations: 1.673 MB / 469.5 MB, free: 17.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004748/0.3778, allocations: 0.9958 MB / 470.5 MB, free: 16.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.3782, allocations: 90.72 kB / 470.6 MB, free: 16.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.3783, allocations: 52.5 kB / 470.6 MB, free: 16.39 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3783, allocations: 0 / 470.6 MB, free: 16.39 MB / 366.1 MB Notification: Performance of Templates: time 0.02081/0.3991, allocations: 12.6 MB / 483.2 MB, free: 11.84 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.930491563864052]