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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001936/0.001936, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002471/0.002471, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.639/2.639, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3929, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.01429/0.4072, allocations: 6.284 MB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007145/0.4144, allocations: 2.227 MB / 418.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.4155, allocations: 19.94 kB / 418.5 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003469/0.419, allocations: 0.7461 MB / 419.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003296/0.4224, allocations: 0.6055 MB / 419.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.4247, allocations: 0.5256 MB / 420.3 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.4272, allocations: 1.191 MB / 421.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.4294, allocations: 0.8367 MB / 422.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.4305, allocations: 478.2 kB / 422.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.4318, allocations: 0.5328 MB / 423.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002707/0.4321, allocations: 116 kB / 423.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.4332, allocations: 287.8 kB / 423.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003605/0.4336, allocations: 251.1 kB / 424 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.4347, allocations: 0.5596 MB / 424.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002509/0.4372, allocations: 1.479 MB / 426.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4372, allocations: 0 / 426.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4372, allocations: 0 / 426.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.198e-05/0.4373, allocations: 0 / 426.1 MB, free: 1.398 MB / 334.1 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.00564/0.4429, allocations: 1.444 MB / 427.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.443, allocations: 8.031 kB / 427.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005423/0.4484, allocations: 407.2 kB / 427.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/0.4503, allocations: 0.5888 MB / 428.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.4505, allocations: 74.38 kB / 428.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003067/0.4508, allocations: 100.4 kB / 428.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003533/0.4544, allocations: 1.016 MB / 429.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.4544, allocations: 3.938 kB / 429.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/0.4546, allocations: 44 kB / 429.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.4547, allocations: 24 kB / 429.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003331/0.458, allocations: 0.8511 MB / 430.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.4683, allocations: 3.59 MB / 434.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004088/0.4724, allocations: 1.91 MB / 436.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.4743, allocations: 467.3 kB / 436.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002873/0.4746, allocations: 170.9 kB / 436.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001625/0.4762, allocations: 0.493 MB / 437.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 5.079e-06/0.4763, allocations: 0 / 437.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008767/0.485, allocations: 1.686 MB / 438.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.4853, allocations: 196.9 kB / 439.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009609/0.4862, allocations: 478.1 kB / 439.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.4864, allocations: 45.69 kB / 439.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000511/0.4869, allocations: 419.6 kB / 440 MB, free: 2.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003953/0.4873, allocations: 272.1 kB / 440.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004076/0.4877, allocations: 154.6 kB / 440.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/0.488, allocations: 378.8 kB / 440.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.489, allocations: 265.9 kB / 441.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.4904, allocations: 487.2 kB / 441.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.4928, allocations: 0.7552 MB / 442.3 MB, free: 244 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.4929, allocations: 0 / 442.3 MB, free: 244 kB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.004091/0.497, allocations: 1.029 MB / 443.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.497, allocations: 11.94 kB / 443.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.4971, allocations: 11.98 kB / 443.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001731/0.4988, allocations: 268.5 kB / 443.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.5, allocations: 143.7 kB / 443.7 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2146/0.7147, allocations: 4.845 MB / 448.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.7161, allocations: 103.2 kB / 448.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.7163, allocations: 39.92 kB / 448.7 MB, free: 9.504 MB / 366.1 MB 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,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,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 (82): * Single equations (assignments): 80 * 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.0006909/0.717, allocations: 246.4 kB / 449 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.7173, allocations: 71.22 kB / 449 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/0.721, allocations: 0.9788 MB / 450 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.09e-05/0.721, allocations: 12 kB / 450 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.721, allocations: 0 / 450 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.7211, allocations: 3.984 kB / 450 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008744/0.7298, allocations: 1.905 MB / 451.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.7299, allocations: 3.938 kB / 451.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.731, allocations: 99.91 kB / 452 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001679/0.7327, allocations: 269.1 kB / 452.3 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/0.7329, allocations: 23.98 kB / 452.3 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01927/0.7522, allocations: 4.8 MB / 457.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-05/0.7523, allocations: 3.938 kB / 457.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005175/0.7575, allocations: 1.381 MB / 458.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006527/0.7582, allocations: 216 kB / 458.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.7584, allocations: 19.98 kB / 458.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008791/0.7593, allocations: 43.97 kB / 458.8 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/0.7597, allocations: 68.91 kB / 458.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7598, allocations: 31.92 kB / 458.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007273/0.7605, allocations: 326.9 kB / 459.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7606, allocations: 0 / 459.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002006/0.7626, allocations: 311.1 kB / 459.5 MB, free: 14.3 MB / 382.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_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) * Number of clocked states: 0 () * 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 (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.0004743/0.7631, allocations: 159.1 kB / 459.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003662/0.7668, allocations: 1.099 MB / 460.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.7668, allocations: 0 / 460.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.7693, allocations: 0.7404 MB / 461.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.7707, allocations: 126.6 kB / 461.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/0.7765, allocations: 1.689 MB / 463.3 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009721/0.7775, allocations: 0.9943 MB / 464.3 MB, free: 9.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000359/0.7779, allocations: 59.42 kB / 464.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7779, allocations: 0 / 464.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of Templates: time 0.04221/0.8202, allocations: 17.78 MB / 482.1 MB, free: 7.559 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma