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.001414/0.001415, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.001527/0.001527, allocations: 198 kB / 18.07 MB, free: 5.41 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.405/1.405, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001233/0.001233, allocations: 51.94 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.0076/0.1124, allocations: 6.245 MB / 332.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004134/0.1166, allocations: 2.158 MB / 335 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004111/0.1171, allocations: 16 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00167/0.1188, allocations: 0.6846 MB / 335.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.1204, allocations: 0.723 MB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009995/0.1215, allocations: 467 kB / 336.9 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.1225, allocations: 1.117 MB / 338 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009336/0.1234, allocations: 0.6861 MB / 338.7 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004167/0.1238, allocations: 426.3 kB / 339.1 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000542/0.1244, allocations: 0.5171 MB / 339.6 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1245, allocations: 68 kB / 339.7 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004751/0.125, allocations: 223.8 kB / 339.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.1252, allocations: 211.1 kB / 340.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004676/0.1257, allocations: 0.5207 MB / 340.6 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.1269, allocations: 1.382 MB / 342 MB, free: 5.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1269, allocations: 0 / 342 MB, free: 5.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1269, allocations: 0 / 342 MB, free: 5.395 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1269, allocations: 4 kB / 342 MB, free: 5.391 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.002892/0.1298, allocations: 1.44 MB / 343.5 MB, free: 3.895 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1299, allocations: 8.031 kB / 343.5 MB, free: 3.887 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002877/0.1328, allocations: 479.2 kB / 343.9 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008127/0.1336, allocations: 0.5616 MB / 344.5 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.1337, allocations: 78.41 kB / 344.6 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.1338, allocations: 104.3 kB / 344.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.1356, allocations: 1.055 MB / 345.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.1356, allocations: 0 / 345.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-05/0.1357, allocations: 44 kB / 345.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/0.1358, allocations: 24 kB / 345.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.1375, allocations: 0.9213 MB / 346.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005625/0.1431, allocations: 3.742 MB / 350.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.1456, allocations: 2.49 MB / 352.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008691/0.1465, allocations: 471.5 kB / 353.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.1466, allocations: 101.7 kB / 353.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008442/0.1475, allocations: 0.4929 MB / 354 MB, free: 8.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.334e-06/0.1475, allocations: 0 / 354 MB, free: 8.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004325/0.1518, allocations: 1.694 MB / 355.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.1519, allocations: 200.8 kB / 355.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.1525, allocations: 474 kB / 356.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.673e-05/0.1525, allocations: 49.69 kB / 356.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.1528, allocations: 431.4 kB / 356.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.153, allocations: 280 kB / 357.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.1533, allocations: 170.5 kB / 357.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1534, allocations: 378.7 kB / 357.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.154, allocations: 277.9 kB / 357.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007764/0.1547, allocations: 0.5239 MB / 358.4 MB, free: 3.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.156, allocations: 0.8031 MB / 359.2 MB, free: 3.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.156, allocations: 4 kB / 359.2 MB, free: 3.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002045/0.1581, allocations: 1.068 MB / 360.3 MB, free: 1.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.1581, allocations: 8 kB / 360.3 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1581, allocations: 8 kB / 360.3 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008866/0.159, allocations: 269.7 kB / 360.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005746/0.1596, allocations: 159.7 kB / 360.7 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005066/0.1647, allocations: 4.403 MB / 365.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006916/0.1654, allocations: 103 kB / 365.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.1655, allocations: 43.94 kB / 365.3 MB, free: 12.74 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,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,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 (90): * Single equations (assignments): 88 * 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.0004603/0.1659, allocations: 253.6 kB / 365.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.166, allocations: 67.25 kB / 365.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.168, allocations: 0.9597 MB / 366.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.168, allocations: 8 kB / 366.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.168, allocations: 8 kB / 366.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.1681, allocations: 11.91 kB / 366.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.1712, allocations: 1.947 MB / 368.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.1712, allocations: 7.938 kB / 368.5 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004519/0.1717, allocations: 103.8 kB / 368.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007831/0.1725, allocations: 257.8 kB / 368.9 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/0.1726, allocations: 24 kB / 368.9 MB, free: 9.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.1774, allocations: 4.353 MB / 373.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1774, allocations: 0 / 373.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.1799, allocations: 1.384 MB / 374.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.1803, allocations: 212 kB / 374.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1804, allocations: 24 kB / 374.9 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.1808, allocations: 39.97 kB / 374.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.181, allocations: 72.83 kB / 375 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/0.181, allocations: 24 kB / 375 MB, free: 2.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003497/0.1814, allocations: 327 kB / 375.3 MB, free: 2.277 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1814, allocations: 4 kB / 375.3 MB, free: 2.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001091/0.1825, allocations: 311.1 kB / 375.6 MB, free: 1.969 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 (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.0002632/0.1828, allocations: 159.2 kB / 375.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.1847, allocations: 1.101 MB / 376.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1847, allocations: 0 / 376.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.152/0.3367, allocations: 0.7326 MB / 377.6 MB, free: 52.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009608/0.3377, allocations: 108.5 kB / 377.7 MB, free: 52.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.341, allocations: 2.116 MB / 379.9 MB, free: 51.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000695/0.3417, allocations: 1.003 MB / 380.9 MB, free: 50.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000391/0.3421, allocations: 91.64 kB / 380.9 MB, free: 50.69 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3422, allocations: 49.97 kB / 381 MB, free: 50.69 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3422, allocations: 0 / 381 MB, free: 50.69 MB / 318.1 MB Notification: Performance of Templates: time 0.01934/0.3616, allocations: 11.64 MB / 392.6 MB, free: 47.41 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