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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009742/0.0009742, allocations: 109.5 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009505/0.0009506, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1937, allocations: 50.45 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005204/0.199, allocations: 6.251 MB / 413.3 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002918/0.2019, allocations: 2.171 MB / 415.5 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003965/0.2024, allocations: 27.94 kB / 415.5 MB, free: 19.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.2039, allocations: 0.6768 MB / 416.2 MB, free: 18.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.2049, allocations: 0.5401 MB / 416.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007962/0.2058, allocations: 479.1 kB / 417.2 MB, free: 17.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000767/0.2065, allocations: 1.132 MB / 418.3 MB, free: 16.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008536/0.2074, allocations: 0.6822 MB / 419 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.2078, allocations: 426.2 kB / 419.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004/0.2082, allocations: 0.521 MB / 419.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.571e-05/0.2083, allocations: 68 kB / 420 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000444/0.2088, allocations: 231.9 kB / 420.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.2089, allocations: 211.1 kB / 420.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003148/0.2092, allocations: 0.5051 MB / 420.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008689/0.2101, allocations: 1.401 MB / 422.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2101, allocations: 0 / 422.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2101, allocations: 4 kB / 422.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2102, allocations: 0 / 422.3 MB, free: 12.46 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.002471/0.2126, allocations: 1.444 MB / 423.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2127, allocations: 12.03 kB / 423.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002181/0.2149, allocations: 399.3 kB / 424.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.2156, allocations: 0.5616 MB / 424.8 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/0.2156, allocations: 78.38 kB / 424.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.2157, allocations: 100.4 kB / 424.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.2171, allocations: 1.02 MB / 425.9 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/0.2172, allocations: 3.984 kB / 426 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.523e-05/0.2172, allocations: 44 kB / 426 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.2173, allocations: 24 kB / 426 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.2186, allocations: 0.8549 MB / 426.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/0.2225, allocations: 3.633 MB / 430.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.2243, allocations: 1.895 MB / 432.4 MB, free: 1.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007399/0.2251, allocations: 463.5 kB / 432.9 MB, free: 1.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.2252, allocations: 174.9 kB / 433 MB, free: 1.184 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006838/0.2259, allocations: 492.9 kB / 433.5 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 2.826e-06/0.2259, allocations: 11.94 kB / 433.5 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.004166/0.2301, allocations: 1.678 MB / 435.2 MB, free: 14.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.2302, allocations: 200.9 kB / 435.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.2307, allocations: 466 kB / 435.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.511e-05/0.2307, allocations: 45.69 kB / 435.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.2311, allocations: 415.7 kB / 436.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/0.2313, allocations: 272 kB / 436.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/0.2315, allocations: 162.6 kB / 436.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.2317, allocations: 370.8 kB / 437.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005275/0.2322, allocations: 265.9 kB / 437.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.2329, allocations: 491.2 kB / 437.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.2341, allocations: 0.7474 MB / 438.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.2341, allocations: 0 / 438.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001933/0.236, allocations: 1.029 MB / 439.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.2361, allocations: 11.94 kB / 439.6 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.2361, allocations: 8 kB / 439.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008853/0.237, allocations: 281.1 kB / 439.9 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005335/0.2375, allocations: 139.8 kB / 440 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005102/0.2427, allocations: 4.398 MB / 444.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.2434, allocations: 99.17 kB / 444.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.2435, allocations: 35.98 kB / 444.6 MB, free: 5.039 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,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.000428/0.2439, allocations: 252.2 kB / 444.8 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.244, allocations: 71.16 kB / 444.9 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/0.2461, allocations: 0.9633 MB / 445.8 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.2461, allocations: 11.94 kB / 445.9 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2461, allocations: 4 kB / 445.9 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2461, allocations: 3.984 kB / 445.9 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003268/0.2494, allocations: 1.918 MB / 447.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2494, allocations: 32 / 447.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.2499, allocations: 99.88 kB / 447.9 MB, free: 1.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007662/0.2507, allocations: 261.5 kB / 448.1 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.344e-05/0.2507, allocations: 16 kB / 448.1 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004812/0.2556, allocations: 4.368 MB / 452.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2556, allocations: 96 / 452.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/0.2659, allocations: 6.951 MB / 459.5 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.2662, allocations: 216 kB / 459.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.2664, allocations: 20 kB / 459.7 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/0.2668, allocations: 44.16 kB / 459.7 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.2671, allocations: 64.91 kB / 459.8 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.2671, allocations: 27.97 kB / 459.8 MB, free: 5.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003623/0.2675, allocations: 330.8 kB / 460.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2675, allocations: 4 kB / 460.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001265/0.2688, allocations: 379.2 kB / 460.5 MB, free: 4.395 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.0003199/0.2691, allocations: 151.2 kB / 460.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.2712, allocations: 1.081 MB / 461.8 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.2712, allocations: 0 / 461.8 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.2724, allocations: 0.7237 MB / 462.5 MB, free: 2.379 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.273, allocations: 114.8 kB / 462.6 MB, free: 2.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.2772, allocations: 2.723 MB / 465.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007246/0.278, allocations: 1.022 MB / 466.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000396/0.2784, allocations: 81.44 kB / 466.4 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.2785, allocations: 51.42 kB / 466.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2785, allocations: 0 / 466.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of Templates: time 0.02232/0.3009, allocations: 13.44 MB / 479.9 MB, free: 0.9766 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches