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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.001425/0.001431, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 63.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2384, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006645/0.2451, allocations: 6.287 MB / 415.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003897/0.249, allocations: 2.242 MB / 417.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000689/0.2497, allocations: 19.94 kB / 417.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.2517, allocations: 0.7419 MB / 418.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001495/0.2532, allocations: 0.6055 MB / 419.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.2542, allocations: 0.526 MB / 419.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.2554, allocations: 1.187 MB / 420.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001038/0.2564, allocations: 0.8354 MB / 421.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.2569, allocations: 474.2 kB / 422.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005924/0.2575, allocations: 0.5406 MB / 422.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.2577, allocations: 112 kB / 422.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005302/0.2582, allocations: 287.8 kB / 423.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.2584, allocations: 247.1 kB / 423.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004471/0.2589, allocations: 0.552 MB / 423.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.2603, allocations: 1.494 MB / 425.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2603, allocations: 4 kB / 425.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2603, allocations: 0 / 425.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.2604, allocations: 0 / 425.4 MB, free: 1.383 MB / 334.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.0028/0.2632, allocations: 1.473 MB / 426.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2632, allocations: 8.031 kB / 426.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/0.2657, allocations: 411.8 kB / 427.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008525/0.2666, allocations: 0.5815 MB / 427.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.142e-05/0.2666, allocations: 82.38 kB / 427.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.2668, allocations: 100.4 kB / 428 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.2685, allocations: 1.016 MB / 429 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.2685, allocations: 3.953 kB / 429 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.223e-05/0.2686, allocations: 51.98 kB / 429.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.2687, allocations: 24 kB / 429.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2703, allocations: 0.851 MB / 430 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004933/0.2752, allocations: 3.603 MB / 433.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.2774, allocations: 1.892 MB / 435.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008874/0.2783, allocations: 459.5 kB / 435.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.2784, allocations: 182.8 kB / 436.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008307/0.2793, allocations: 0.4891 MB / 436.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.384e-06/0.2793, allocations: 0 / 436.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004414/0.2837, allocations: 1.69 MB / 438.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.2838, allocations: 200.8 kB / 438.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005455/0.2844, allocations: 478 kB / 438.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/0.2845, allocations: 45.7 kB / 439 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.2848, allocations: 432.7 kB / 439.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.285, allocations: 285.5 kB / 439.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.2852, allocations: 158.6 kB / 439.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2854, allocations: 374.8 kB / 440.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000538/0.2859, allocations: 265.9 kB / 440.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000674/0.2866, allocations: 499.2 kB / 440.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.2878, allocations: 0.7435 MB / 441.7 MB, free: 156 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.2878, allocations: 4 kB / 441.7 MB, free: 152 kB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001964/0.2898, allocations: 1.037 MB / 442.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2898, allocations: 11.94 kB / 442.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.2898, allocations: 4 kB / 442.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008485/0.2907, allocations: 268.9 kB / 443 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.2912, allocations: 147.7 kB / 443.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005344/0.2966, allocations: 4.863 MB / 448 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006085/0.2972, allocations: 99.38 kB / 448.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.936e-05/0.2973, allocations: 32 kB / 448.1 MB, free: 9.41 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.000428/0.2977, allocations: 258.5 kB / 448.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.2979, allocations: 67.58 kB / 448.5 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/0.2999, allocations: 0.971 MB / 449.4 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.2999, allocations: 11.98 kB / 449.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2999, allocations: 4 kB / 449.4 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.2999, allocations: 7.922 kB / 449.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.303, allocations: 1.909 MB / 451.4 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.303, allocations: 0 / 451.4 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004132/0.3034, allocations: 99.81 kB / 451.5 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007434/0.3042, allocations: 261.5 kB / 451.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.3042, allocations: 19.98 kB / 451.7 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/0.3091, allocations: 4.814 MB / 456.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3091, allocations: 3.938 kB / 456.6 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.3114, allocations: 1.381 MB / 457.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.3117, allocations: 220.6 kB / 458.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3118, allocations: 20 kB / 458.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.3123, allocations: 43.91 kB / 458.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3125, allocations: 72.84 kB / 458.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.3125, allocations: 31.92 kB / 458.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000377/0.3129, allocations: 326.9 kB / 458.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3129, allocations: 0 / 458.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001096/0.314, allocations: 311.3 kB / 458.9 MB, free: 14.18 MB / 382.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.0003288/0.3144, allocations: 167 kB / 459.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.3162, allocations: 1.093 MB / 460.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3163, allocations: 3.938 kB / 460.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.3174, allocations: 0.7354 MB / 460.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006288/0.318, allocations: 126.2 kB / 461.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.3208, allocations: 1.677 MB / 462.7 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.3214, allocations: 0.9982 MB / 463.7 MB, free: 9.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003292/0.3217, allocations: 81.48 kB / 463.8 MB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.3218, allocations: 47.42 kB / 463.9 MB, free: 9.145 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3219, allocations: 4 kB / 463.9 MB, free: 9.141 MB / 382.1 MB Notification: Performance of Templates: time 0.02105/0.3429, allocations: 12.72 MB / 476.6 MB, free: 12.54 MB / 398.1 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/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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches