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.001088/0.001088, allocations: 114.1 kB / 17.28 MB, free: 6.219 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.001164/0.001164, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.357/1.357, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.00116/0.00116, allocations: 44.41 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007999/0.117, allocations: 6.249 MB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004075/0.1211, allocations: 2.142 MB / 335.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005955/0.1218, allocations: 23.88 kB / 335.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002073/0.1239, allocations: 0.6769 MB / 335.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002968/0.1269, allocations: 0.7152 MB / 336.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.128, allocations: 459 kB / 337 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.1295, allocations: 1.195 MB / 338.2 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1308, allocations: 0.8666 MB / 339.1 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005862/0.1314, allocations: 462.3 kB / 339.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.1321, allocations: 0.5484 MB / 340.1 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.1323, allocations: 112 kB / 340.2 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005964/0.1329, allocations: 267.8 kB / 340.5 MB, free: 7.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1331, allocations: 255.1 kB / 340.7 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004649/0.1336, allocations: 0.5519 MB / 341.3 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.135, allocations: 1.433 MB / 342.7 MB, free: 4.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.64e-05/0.1351, allocations: 4 kB / 342.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1351, allocations: 0 / 342.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.1351, allocations: 4 kB / 342.7 MB, free: 4.781 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.003009/0.1381, allocations: 1.44 MB / 344.1 MB, free: 3.285 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1382, allocations: 8.031 kB / 344.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002882/0.141, allocations: 475.2 kB / 344.6 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008686/0.1419, allocations: 0.5694 MB / 345.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.142, allocations: 74.41 kB / 345.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.1422, allocations: 108.4 kB / 345.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.1442, allocations: 1.047 MB / 346.4 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.1442, allocations: 7.938 kB / 346.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.1443, allocations: 47.98 kB / 346.5 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.1444, allocations: 24 kB / 346.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.1461, allocations: 0.9174 MB / 347.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005478/0.1515, allocations: 3.746 MB / 351.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.1542, allocations: 2.498 MB / 353.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008879/0.1551, allocations: 459.5 kB / 354.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.1552, allocations: 93.77 kB / 354.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008747/0.1561, allocations: 0.4969 MB / 354.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.386e-06/0.1561, allocations: 0 / 354.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.00437/0.1605, allocations: 1.701 MB / 356.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1606, allocations: 196.9 kB / 356.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.1612, allocations: 474 kB / 357 MB, free: 5.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.1612, allocations: 45.73 kB / 357.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.1616, allocations: 431.4 kB / 357.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002181/0.1618, allocations: 280 kB / 357.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.162, allocations: 166.5 kB / 357.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1622, allocations: 382.7 kB / 358.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.1628, allocations: 269.9 kB / 358.6 MB, free: 4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.1635, allocations: 0.5239 MB / 359.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.1647, allocations: 0.7953 MB / 359.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.1647, allocations: 4 kB / 359.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001965/0.1667, allocations: 1.076 MB / 361 MB, free: 1.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.1667, allocations: 8 kB / 361 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.1668, allocations: 8.219 kB / 361 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009347/0.1677, allocations: 281.5 kB / 361.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.1683, allocations: 159.7 kB / 361.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005255/0.1736, allocations: 4.871 MB / 366.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00071/0.1743, allocations: 103.1 kB / 366.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.1744, allocations: 43.98 kB / 366.4 MB, free: 11.65 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.0004241/0.1748, allocations: 257.7 kB / 366.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1749, allocations: 71.09 kB / 366.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.1769, allocations: 0.9598 MB / 367.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1769, allocations: 12 kB / 367.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1769, allocations: 4 kB / 367.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.1769, allocations: 7.922 kB / 367.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.18, allocations: 1.939 MB / 369.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.18, allocations: 0 / 369.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.1805, allocations: 107.8 kB / 369.8 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007459/0.1812, allocations: 265.5 kB / 370.1 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.89e-05/0.1813, allocations: 19.98 kB / 370.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005053/0.1864, allocations: 4.809 MB / 374.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1864, allocations: 0 / 374.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.1888, allocations: 1.4 MB / 376.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.1891, allocations: 208.3 kB / 376.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.1892, allocations: 20 kB / 376.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004409/0.1896, allocations: 43.91 kB / 376.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.1898, allocations: 77.08 kB / 376.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/0.1898, allocations: 20 kB / 376.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003565/0.1902, allocations: 330.8 kB / 377 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.1902, allocations: 0 / 377 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001025/0.1912, allocations: 315.2 kB / 377.3 MB, free: 412 kB / 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.0002705/0.1915, allocations: 167 kB / 377.4 MB, free: 236 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1738/0.3653, allocations: 1.134 MB / 378.6 MB, free: 53.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3654, allocations: 1.375 kB / 378.6 MB, free: 53.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.3665, allocations: 0.74 MB / 379.3 MB, free: 53.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008997/0.3674, allocations: 114.4 kB / 379.4 MB, free: 53.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.3711, allocations: 2.107 MB / 381.5 MB, free: 52.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.3716, allocations: 0.9972 MB / 382.5 MB, free: 51.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.372, allocations: 86.81 kB / 382.6 MB, free: 51.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3722, allocations: 52.5 kB / 382.7 MB, free: 51.31 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3722, allocations: 3.438 kB / 382.7 MB, free: 51.31 MB / 318.1 MB Notification: Performance of Templates: time 0.02073/0.3929, allocations: 12.32 MB / 395 MB, free: 47.38 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