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.001568/0.001568, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 199.8 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3106, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007051/0.3177, allocations: 6.283 MB / 415.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00406/0.3218, allocations: 2.234 MB / 417.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008446/0.3227, allocations: 19.94 kB / 417.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.3247, allocations: 0.7496 MB / 418.5 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001912/0.3266, allocations: 0.6133 MB / 419.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.328, allocations: 0.5221 MB / 419.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.3299, allocations: 1.191 MB / 420.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.3313, allocations: 0.8328 MB / 421.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008014/0.3321, allocations: 478.2 kB / 422.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006354/0.3327, allocations: 0.5367 MB / 422.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.3329, allocations: 112 kB / 422.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005468/0.3334, allocations: 287.8 kB / 423.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.3337, allocations: 255.1 kB / 423.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004675/0.3341, allocations: 0.548 MB / 423.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.3356, allocations: 1.487 MB / 425.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3357, allocations: 0 / 425.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3357, allocations: 0 / 425.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.3357, allocations: 0 / 425.4 MB, free: 1.371 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.002819/0.3385, allocations: 1.44 MB / 426.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3386, allocations: 15.97 kB / 426.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00247/0.341, allocations: 399.3 kB / 427.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008549/0.3419, allocations: 0.5927 MB / 427.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.503e-05/0.342, allocations: 74.38 kB / 427.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.3421, allocations: 100.4 kB / 428 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.3438, allocations: 1.016 MB / 429 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.3438, allocations: 8 kB / 429 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.603e-05/0.3439, allocations: 40 kB / 429 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.344, allocations: 24 kB / 429.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.3456, allocations: 0.8588 MB / 429.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/0.3506, allocations: 3.598 MB / 433.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002134/0.3528, allocations: 1.892 MB / 435.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009051/0.3537, allocations: 471.3 kB / 435.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001759/0.3539, allocations: 178.9 kB / 436.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008411/0.3548, allocations: 496.8 kB / 436.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.565e-06/0.3548, allocations: 0 / 436.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004356/0.3591, allocations: 1.686 MB / 438.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.834e-05/0.3592, allocations: 192.9 kB / 438.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.3598, allocations: 486.1 kB / 438.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.3599, allocations: 41.7 kB / 438.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.3602, allocations: 415.6 kB / 439.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.3604, allocations: 276.1 kB / 439.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.3606, allocations: 154.6 kB / 439.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3608, allocations: 374.8 kB / 440.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.3613, allocations: 269.9 kB / 440.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.362, allocations: 491.2 kB / 440.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.3632, allocations: 0.7435 MB / 441.6 MB, free: 220 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3632, allocations: 0 / 441.6 MB, free: 220 kB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00192/0.3651, allocations: 1.037 MB / 442.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.3651, allocations: 11.94 kB / 442.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3652, allocations: 4 kB / 442.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.366, allocations: 265.1 kB / 442.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005517/0.3666, allocations: 143.7 kB / 443.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005353/0.3719, allocations: 4.858 MB / 447.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000595/0.3725, allocations: 99.2 kB / 448 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.848e-05/0.3726, allocations: 39.98 kB / 448.1 MB, free: 9.477 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.0003754/0.373, allocations: 241.7 kB / 448.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3731, allocations: 79.14 kB / 448.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.3751, allocations: 0.9749 MB / 449.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.3751, allocations: 8 kB / 449.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.3751, allocations: 0 / 449.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3751, allocations: 3.984 kB / 449.4 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003023/0.3782, allocations: 1.917 MB / 451.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3782, allocations: 0 / 451.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.3786, allocations: 91.89 kB / 451.4 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.3794, allocations: 269.4 kB / 451.6 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.3795, allocations: 19.98 kB / 451.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.3847, allocations: 4.81 MB / 456.5 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3847, allocations: 12.03 kB / 456.5 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002513/0.3872, allocations: 1.369 MB / 457.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.3875, allocations: 220 kB / 458 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3877, allocations: 16 kB / 458.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/0.3881, allocations: 43.97 kB / 458.1 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.3883, allocations: 68.84 kB / 458.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/0.3883, allocations: 35.92 kB / 458.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003909/0.3887, allocations: 318.9 kB / 458.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3888, allocations: 0 / 458.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001141/0.3899, allocations: 315.1 kB / 458.8 MB, free: 14.27 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.0003094/0.3902, allocations: 159.1 kB / 459 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.3923, allocations: 1.095 MB / 460.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.3923, allocations: 0 / 460.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.3934, allocations: 0.7444 MB / 460.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006077/0.3941, allocations: 128.7 kB / 460.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.3971, allocations: 1.641 MB / 462.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/0.3977, allocations: 0.9904 MB / 463.6 MB, free: 9.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003105/0.398, allocations: 85.47 kB / 463.7 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.3982, allocations: 55.42 kB / 463.7 MB, free: 9.266 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3982, allocations: 3.938 kB / 463.7 MB, free: 9.262 MB / 382.1 MB Notification: Performance of Templates: time 0.02224/0.4204, allocations: 12.73 MB / 476.4 MB, free: 12.66 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