Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009659/0.0009659, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9344/0.9344, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.037e-05/2.182e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005756/0.005778, allocations: 6.169 MB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.00945, allocations: 2.168 MB / 281.3 MB, free: 9.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.009974, allocations: 27.88 kB / 281.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.01122, allocations: 0.7887 MB / 282.1 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.01234, allocations: 0.6131 MB / 282.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007858/0.01313, allocations: 0.5259 MB / 283.3 MB, free: 7.176 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009841/0.01411, allocations: 1.23 MB / 284.5 MB, free: 5.941 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008794/0.01499, allocations: 0.7532 MB / 285.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006255/0.01562, allocations: 0.6938 MB / 285.9 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004344/0.01605, allocations: 434.7 kB / 286.4 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.01616, allocations: 112 kB / 286.5 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.01659, allocations: 275.6 kB / 286.7 MB, free: 3.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.01673, allocations: 263 kB / 287 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.017, allocations: 379.1 kB / 287.4 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.01819, allocations: 0.9925 MB / 288.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.01819, allocations: 0 / 288.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01819, allocations: 0 / 288.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.0182, allocations: 4 kB / 288.4 MB, free: 2.031 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.002088/0.02029, allocations: 1.801 MB / 290.2 MB, free: 180 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.02033, allocations: 8.031 kB / 290.2 MB, free: 172 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1227/0.143, allocations: 0.4969 MB / 290.7 MB, free: 19.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009166/0.1439, allocations: 0.5346 MB / 291.2 MB, free: 19.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.144, allocations: 78.27 kB / 291.3 MB, free: 19.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.1441, allocations: 104.1 kB / 291.4 MB, free: 19.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.1454, allocations: 0.8962 MB / 292.3 MB, free: 19.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.1454, allocations: 1.891 kB / 292.3 MB, free: 19.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.143e-05/0.1455, allocations: 46.7 kB / 292.3 MB, free: 19.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.1455, allocations: 23.88 kB / 292.4 MB, free: 19.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.1464, allocations: 462.8 kB / 292.8 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003706/0.1501, allocations: 3.152 MB / 296 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.1513, allocations: 0.7693 MB / 296.7 MB, free: 17.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000522/0.1518, allocations: 290.7 kB / 297 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.827e-05/0.1519, allocations: 33.09 kB / 297 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005989/0.1525, allocations: 496.8 kB / 297.5 MB, free: 17.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=84): time 2.224e-06/0.1525, allocations: 0 / 297.5 MB, free: 17.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=84): time 0.002548/0.1551, allocations: 1.156 MB / 298.7 MB, free: 17.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.1551, allocations: 199.6 kB / 298.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004078/0.1555, allocations: 482 kB / 299.4 MB, free: 16.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.1556, allocations: 41.02 kB / 299.4 MB, free: 16.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.1558, allocations: 485.8 kB / 299.9 MB, free: 16.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1559, allocations: 279.4 kB / 300.1 MB, free: 16.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1561, allocations: 166.4 kB / 300.3 MB, free: 16.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1562, allocations: 0.542 MB / 300.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.1565, allocations: 133.9 kB / 301 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.1569, allocations: 0.5221 MB / 301.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005979/0.1575, allocations: 0.5663 MB / 302.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.1575, allocations: 7.969 kB / 302.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001083/0.1585, allocations: 0.7874 MB / 302.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.1586, allocations: 6.875 kB / 302.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.1586, allocations: 9.531 kB / 302.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006615/0.1593, allocations: 248.8 kB / 303.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.1596, allocations: 141.2 kB / 303.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/0.1626, allocations: 5.147 MB / 308.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.1629, allocations: 83.19 kB / 308.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.003e-05/0.163, allocations: 36.95 kB / 308.5 MB, free: 10.03 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.000214/0.1632, allocations: 213 kB / 308.7 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.541e-05/0.1633, allocations: 100.8 kB / 308.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009784/0.1642, allocations: 0.7118 MB / 309.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1642, allocations: 7.406 kB / 309.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1643, allocations: 0 / 309.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.1643, allocations: 7.312 kB / 309.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.1659, allocations: 1.44 MB / 311 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1659, allocations: 0 / 311 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.1661, allocations: 89.81 kB / 311.1 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005126/0.1666, allocations: 239.9 kB / 311.3 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.1667, allocations: 21.92 kB / 311.3 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00252/0.1692, allocations: 5.096 MB / 316.4 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1692, allocations: 0 / 316.4 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.1703, allocations: 0.9993 MB / 317.4 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.1704, allocations: 135.1 kB / 317.6 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.914e-05/0.1705, allocations: 16 kB / 317.6 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.1706, allocations: 39.97 kB / 317.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.1708, allocations: 82.73 kB / 317.7 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.1708, allocations: 23.98 kB / 317.7 MB, free: 3.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001691/0.171, allocations: 310.8 kB / 318 MB, free: 3.039 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.171, allocations: 0 / 318 MB, free: 3.039 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000785/0.1718, allocations: 315.3 kB / 318.3 MB, free: 2.73 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.0002731/0.172, allocations: 164 kB / 318.5 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009341/0.173, allocations: 0.9641 MB / 319.5 MB, free: 1.602 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.173, allocations: 0 / 319.5 MB, free: 1.602 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.1735, allocations: 0.7441 MB / 320.2 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1739, allocations: 113.7 kB / 320.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.176, allocations: 1.572 MB / 321.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.1762, allocations: 188.6 kB / 322.1 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001885/0.1764, allocations: 73.22 kB / 322.1 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.1765, allocations: 56.48 kB / 322.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1765, allocations: 4 kB / 322.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of Templates: time 0.01513/0.1916, allocations: 11.85 MB / 334 MB, free: 3.211 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3846208108589053]