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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009467/0.0009468, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009133/0.0009132, allocations: 82.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.231e-05/1.233e-05, allocations: 0 / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.08873, allocations: 47.58 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3319/0.4207, allocations: 86.54 MB / 449.6 MB, free: 9.203 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.421, allocations: 78.83 kB / 449.7 MB, free: 9.164 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05532/0.4764, allocations: 22.21 MB / 471.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4764, allocations: 0 / 471.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.027e-05/0.4764, allocations: 20 kB / 471.9 MB, free: 7.113 MB / 346.7 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.002287/0.4787, allocations: 1.15 MB / 473.1 MB, free: 5.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4788, allocations: 12.03 kB / 473.1 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002047/0.4808, allocations: 367.2 kB / 473.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007842/0.4816, allocations: 0.544 MB / 474 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.4817, allocations: 32 kB / 474 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4818, allocations: 60 kB / 474.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001324/0.4832, allocations: 0.7906 MB / 474.9 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.4845, allocations: 0.8323 MB / 475.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.4846, allocations: 3.5 kB / 475.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.483e-05/0.4847, allocations: 4 kB / 475.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.655e-05/0.4847, allocations: 27.95 kB / 475.7 MB, free: 3.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/0.49, allocations: 3.617 MB / 479.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002303/0.4923, allocations: 2.416 MB / 481.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/0.4929, allocations: 360 kB / 482.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.493, allocations: 89.88 kB / 482.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006753/0.4937, allocations: 444 kB / 482.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 5.05e-06/0.4937, allocations: 0 / 482.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.001732/0.4955, allocations: 0.8215 MB / 483.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.4956, allocations: 192.7 kB / 483.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.4961, allocations: 369 kB / 484 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.293e-05/0.4962, allocations: 25.7 kB / 484 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.4965, allocations: 435.5 kB / 484.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/0.4968, allocations: 275.9 kB / 484.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.4968, allocations: 0 / 484.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.497, allocations: 370.8 kB / 485.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.4974, allocations: 226.6 kB / 485.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/0.498, allocations: 469.2 kB / 485.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007303/0.4987, allocations: 344.2 kB / 486.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4987, allocations: 4 kB / 486.1 MB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001848/0.5006, allocations: 0.9703 MB / 487.1 MB, free: 8.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.5006, allocations: 8 kB / 487.1 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.5006, allocations: 11.95 kB / 487.1 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008278/0.5015, allocations: 255.8 kB / 487.3 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.5021, allocations: 167.7 kB / 487.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004516/0.5066, allocations: 4.187 MB / 491.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007779/0.5074, allocations: 95.09 kB / 491.8 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.5075, allocations: 40 kB / 491.8 MB, free: 3.605 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real 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 () * 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 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002968/0.5078, allocations: 136.7 kB / 492 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.508, allocations: 67.25 kB / 492 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.5099, allocations: 0.8838 MB / 492.9 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.5099, allocations: 8 kB / 492.9 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.5099, allocations: 4 kB / 492.9 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5099, allocations: 3.984 kB / 492.9 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.5128, allocations: 1.745 MB / 494.7 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.5128, allocations: 0 / 494.7 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004696/0.5133, allocations: 107.8 kB / 494.8 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007059/0.514, allocations: 254.2 kB / 495 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/0.5141, allocations: 11.98 kB / 495 MB, free: 316 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00436/0.5184, allocations: 4.174 MB / 499.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5185, allocations: 160 / 499.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.5207, allocations: 1.264 MB / 0.4887 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/0.521, allocations: 216 kB / 0.489 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.834e-05/0.5211, allocations: 4 kB / 0.489 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004409/0.5215, allocations: 35.97 kB / 0.489 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.5217, allocations: 72.61 kB / 0.4891 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.5218, allocations: 27.98 kB / 0.4891 GB, free: 10.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000307/0.5221, allocations: 275 kB / 0.4893 GB, free: 9.973 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5221, allocations: 0 / 0.4893 GB, free: 9.973 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001065/0.5232, allocations: 291.1 kB / 0.4896 GB, free: 9.688 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.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) * 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.0002907/0.5235, allocations: 147.2 kB / 0.4898 GB, free: 9.531 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.5251, allocations: 0.9686 MB / 0.4907 GB, free: 8.543 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5251, allocations: 64 / 0.4907 GB, free: 8.543 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009377/0.5261, allocations: 0.664 MB / 0.4914 GB, free: 7.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.5266, allocations: 84.08 kB / 0.4914 GB, free: 7.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.5309, allocations: 1.68 MB / 0.4931 GB, free: 6.062 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006523/0.5316, allocations: 1.018 MB / 0.4941 GB, free: 5.016 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004437/0.5321, allocations: 81.33 kB / 0.4942 GB, free: 4.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.5322, allocations: 51.42 kB / 0.4942 GB, free: 4.883 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5322, allocations: 0 / 0.4942 GB, free: 4.883 MB / 378.7 MB Notification: Performance of Templates: time 0.01657/0.5488, allocations: 10.14 MB / 0.5041 GB, free: 10.73 MB / 394.7 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