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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009948/0.0009946, allocations: 103.8 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.976e-05/1.97e-05, allocations: 0 / 343.7 MB, free: 8.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 51.48 MB / 395.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4765, allocations: 89.47 MB / 484.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.4767, allocations: 85.02 kB / 484.7 MB, free: 3.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05681/0.5336, allocations: 22.52 MB / 0.4954 GB, free: 1.465 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5336, allocations: 0 / 0.4954 GB, free: 1.465 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.599e-05/0.5337, allocations: 20 kB / 0.4954 GB, free: 1.445 MB / 362.7 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.002969/0.5367, allocations: 1.156 MB / 0.4965 GB, free: 328 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.5367, allocations: 8.031 kB / 0.4965 GB, free: 320 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.5388, allocations: 337.8 kB / 0.4968 GB, free: 4 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.5399, allocations: 0.5386 MB / 0.4974 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.484e-05/0.54, allocations: 33.78 kB / 0.4974 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.5402, allocations: 59.91 kB / 0.4975 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001569/0.5418, allocations: 0.7201 MB / 0.4982 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.5434, allocations: 0.8108 MB / 0.4989 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.5435, allocations: 0 / 0.4989 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.123e-05/0.5436, allocations: 4 kB / 0.499 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.5436, allocations: 24 kB / 0.499 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005928/0.5495, allocations: 3.51 MB / 0.5024 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.5515, allocations: 1.807 MB / 0.5042 GB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005612/0.5521, allocations: 364 kB / 0.5045 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.5523, allocations: 178.9 kB / 0.5047 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006916/0.553, allocations: 431.9 kB / 0.5051 GB, free: 7.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.128e-06/0.553, allocations: 0 / 0.5051 GB, free: 7.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002056/0.5551, allocations: 0.8449 MB / 0.5059 GB, free: 6.809 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.5552, allocations: 188.7 kB / 0.5061 GB, free: 6.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.5557, allocations: 365.2 kB / 0.5064 GB, free: 6.219 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.5558, allocations: 25.7 kB / 0.5065 GB, free: 6.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.5561, allocations: 423.5 kB / 0.5069 GB, free: 5.766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.5564, allocations: 264.1 kB / 0.5071 GB, free: 5.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.5564, allocations: 1.969 kB / 0.5071 GB, free: 5.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.5566, allocations: 374.8 kB / 0.5075 GB, free: 5.125 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.557, allocations: 214.6 kB / 0.5077 GB, free: 4.914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005229/0.5575, allocations: 432.1 kB / 0.5081 GB, free: 4.406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009055/0.5584, allocations: 368.2 kB / 0.5085 GB, free: 4.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.5584, allocations: 0 / 0.5085 GB, free: 4.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002149/0.5606, allocations: 0.9547 MB / 0.5094 GB, free: 3.078 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.5607, allocations: 9.719 kB / 0.5094 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.5607, allocations: 8 kB / 0.5094 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000877/0.5616, allocations: 251.7 kB / 0.5096 GB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005846/0.5622, allocations: 159.7 kB / 0.5098 GB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005098/0.5673, allocations: 4.19 MB / 0.5139 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008163/0.5681, allocations: 87.3 kB / 0.514 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.5682, allocations: 35.98 kB / 0.514 GB, free: 14.12 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real 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,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0003737/0.5686, allocations: 140.7 kB / 0.5141 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.5689, allocations: 63.25 kB / 0.5142 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.5712, allocations: 0.8994 MB / 0.5151 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5712, allocations: 8 kB / 0.5151 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.5712, allocations: 0 / 0.5151 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5712, allocations: 7.984 kB / 0.5151 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.5747, allocations: 1.751 MB / 0.5168 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5747, allocations: 4 kB / 0.5168 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004797/0.5752, allocations: 111.8 kB / 0.5169 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007378/0.576, allocations: 246.3 kB / 0.5172 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.5761, allocations: 11.17 kB / 0.5172 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004913/0.581, allocations: 4.171 MB / 0.5212 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.581, allocations: 0 / 0.5212 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002754/0.5838, allocations: 1.283 MB / 0.5225 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005112/0.5843, allocations: 216 kB / 0.5227 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.5845, allocations: 4 kB / 0.5227 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.5851, allocations: 35.97 kB / 0.5227 GB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.5852, allocations: 72.61 kB / 0.5228 GB, free: 4.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.474e-05/0.5853, allocations: 23.95 kB / 0.5228 GB, free: 4.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004421/0.5858, allocations: 287 kB / 0.5231 GB, free: 4.453 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5858, allocations: 0 / 0.5231 GB, free: 4.453 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00143/0.5872, allocations: 287.2 kB / 0.5234 GB, free: 4.172 MB / 394.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_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) * 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 (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.0004565/0.5877, allocations: 160.3 kB / 0.5235 GB, free: 4.008 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.5897, allocations: 0.954 MB / 0.5245 GB, free: 3.035 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5897, allocations: 1.062 kB / 0.5245 GB, free: 3.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.5907, allocations: 0.6526 MB / 0.5251 GB, free: 2.367 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000569/0.5913, allocations: 77.73 kB / 0.5252 GB, free: 2.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.594, allocations: 1.145 MB / 0.5263 GB, free: 1.121 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/0.5946, allocations: 1.018 MB / 0.5273 GB, free: 76 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004266/0.5951, allocations: 81.17 kB / 0.5274 GB, free: 15.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.5952, allocations: 43.44 kB / 0.5274 GB, free: 15.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5952, allocations: 0 / 0.5274 GB, free: 15.95 MB / 410.7 MB Notification: Performance of Templates: time 0.01916/0.6144, allocations: 10.17 MB / 0.5373 GB, free: 5.957 MB / 410.7 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","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches