Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001054, allocations: 96.31 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 185.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005042/0.0005042, allocations: 12 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1405, allocations: 47.58 MB / 328.4 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006787/0.1474, allocations: 5.425 MB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00463/0.152, allocations: 2.011 MB / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/0.1531, allocations: 19.94 kB / 335.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007132/0.1539, allocations: 214.7 kB / 336 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002063/0.1559, allocations: 0.6297 MB / 336.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.1571, allocations: 371.2 kB / 337 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.1586, allocations: 1.082 MB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.1604, allocations: 0.9375 MB / 339 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000576/0.161, allocations: 370.4 kB / 339.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005949/0.1616, allocations: 461.9 kB / 339.8 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.81e-05/0.1617, allocations: 48 kB / 339.9 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005876/0.1623, allocations: 195.8 kB / 340.1 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.1624, allocations: 179.2 kB / 340.3 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.1627, allocations: 213.2 kB / 340.5 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.1639, allocations: 1.075 MB / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1639, allocations: 0 / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1639, allocations: 0 / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1639, allocations: 0 / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003004/0.1669, allocations: 1.276 MB / 342.8 MB, free: 5.445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.167, allocations: 8.031 kB / 342.8 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00289/0.1699, allocations: 486.3 kB / 343.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1709, allocations: 0.549 MB / 343.9 MB, free: 4.371 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.673e-05/0.171, allocations: 77.98 kB / 343.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.1712, allocations: 104 kB / 344 MB, free: 4.191 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.1733, allocations: 1.059 MB / 345.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1733, allocations: 0 / 345.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.767e-05/0.1734, allocations: 48 kB / 345.1 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.1735, allocations: 24 kB / 345.2 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.1753, allocations: 0.9292 MB / 346.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005977/0.1812, allocations: 3.766 MB / 349.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003542/0.1848, allocations: 2.498 MB / 352.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.1859, allocations: 483.4 kB / 352.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001321/0.1861, allocations: 101.6 kB / 352.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.1871, allocations: 0.4969 MB / 353.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.536e-06/0.1871, allocations: 4 kB / 353.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004632/0.1918, allocations: 1.718 MB / 355.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.1919, allocations: 196.9 kB / 355.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006801/0.1926, allocations: 466 kB / 355.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.179e-05/0.1927, allocations: 45.73 kB / 355.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004641/0.1932, allocations: 439.3 kB / 356.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.1935, allocations: 279.9 kB / 356.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.1935, allocations: 20 kB / 356.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.1937, allocations: 378.7 kB / 356.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006183/0.1944, allocations: 285.9 kB / 357.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007429/0.1951, allocations: 0.5239 MB / 357.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.1958, allocations: 351 kB / 358.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1958, allocations: 0 / 358.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002234/0.198, allocations: 1.088 MB / 359.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.1981, allocations: 12.17 kB / 359.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.1981, allocations: 12 kB / 359.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009424/0.1991, allocations: 263.6 kB / 359.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006011/0.1997, allocations: 171.8 kB / 359.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005282/0.205, allocations: 4.389 MB / 364 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007566/0.2058, allocations: 103.2 kB / 364.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.217e-05/0.2058, allocations: 39.98 kB / 364.1 MB, free: 14.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,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 (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005003/0.2063, allocations: 249.6 kB / 364.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2064, allocations: 75.14 kB / 364.5 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.2084, allocations: 0.9869 MB / 365.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.2085, allocations: 12 kB / 365.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2085, allocations: 0 / 365.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.2085, allocations: 3.984 kB / 365.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.2117, allocations: 1.963 MB / 367.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.2118, allocations: 0 / 367.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.2122, allocations: 103.9 kB / 367.5 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007692/0.213, allocations: 269.6 kB / 367.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.2131, allocations: 31.92 kB / 367.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005481/0.2186, allocations: 4.344 MB / 372.2 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2186, allocations: 8.016 kB / 372.2 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.2214, allocations: 1.404 MB / 373.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.2219, allocations: 216 kB / 373.8 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.2221, allocations: 24.17 kB / 373.8 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005631/0.2227, allocations: 51.97 kB / 373.9 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.2229, allocations: 72.84 kB / 373.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/0.2229, allocations: 23.98 kB / 374 MB, free: 4.684 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005355/0.2235, allocations: 322.9 kB / 374.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2235, allocations: 0 / 374.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001607/0.2251, allocations: 311.1 kB / 374.6 MB, free: 4.066 MB / 318.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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * 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 (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.000436/0.2256, allocations: 159.2 kB / 374.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.228, allocations: 1.115 MB / 375.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.2281, allocations: 1.25 kB / 375.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.2295, allocations: 0.747 MB / 376.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008966/0.2304, allocations: 114.1 kB / 376.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2212/0.4516, allocations: 2.069 MB / 378.8 MB, free: 51.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007618/0.4524, allocations: 0.9968 MB / 379.8 MB, free: 50.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005568/0.453, allocations: 88.55 kB / 379.9 MB, free: 50.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.4532, allocations: 51.83 kB / 379.9 MB, free: 50.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4532, allocations: 0 / 379.9 MB, free: 50.62 MB / 318.1 MB Notification: Performance of Templates: time 0.02394/0.4771, allocations: 11.14 MB / 391 MB, free: 47.61 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches