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.001552/0.001551, allocations: 110.7 kB / 18.35 MB, free: 4.84 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.001732/0.001732, allocations: 184.2 kB / 19.29 MB, free: 3.918 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.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001211/0.001211, allocations: 59.91 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09245, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.2047/0.2973, allocations: 6.255 MB / 382 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004372/0.3017, allocations: 2.183 MB / 384.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008731/0.3026, allocations: 17.06 kB / 384.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002105/0.3047, allocations: 0.761 MB / 385 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002291/0.307, allocations: 0.7846 MB / 385.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.3084, allocations: 0.491 MB / 386.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001888/0.3103, allocations: 1.199 MB / 387.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.3116, allocations: 0.8362 MB / 388.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008437/0.3124, allocations: 468.8 kB / 388.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008729/0.3133, allocations: 0.5454 MB / 389.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002114/0.3136, allocations: 111.4 kB / 389.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008738/0.3144, allocations: 272.8 kB / 389.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.3147, allocations: 250.8 kB / 389.9 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005711/0.3152, allocations: 0.5526 MB / 390.5 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002076/0.3173, allocations: 1.459 MB / 391.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3173, allocations: 3.938 kB / 391.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3174, allocations: 1.125 kB / 391.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.3174, allocations: 4 kB / 391.9 MB, free: 5.438 MB / 318.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.003411/0.3208, allocations: 1.435 MB / 393.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3209, allocations: 8.375 kB / 393.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003021/0.3239, allocations: 479.6 kB / 393.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.325, allocations: 0.5626 MB / 394.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.996e-05/0.325, allocations: 80.61 kB / 394.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.3252, allocations: 101 kB / 394.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.3272, allocations: 1.057 MB / 395.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.3273, allocations: 5.75 kB / 395.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.495e-05/0.3274, allocations: 43.52 kB / 395.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.228e-05/0.3274, allocations: 24.03 kB / 395.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.3293, allocations: 0.9174 MB / 396.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005693/0.335, allocations: 3.718 MB / 400.3 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.3376, allocations: 2.483 MB / 402.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3387, allocations: 478.4 kB / 403.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.3389, allocations: 96.02 kB / 403.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.3399, allocations: 498.8 kB / 403.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.765e-06/0.3399, allocations: 0 / 403.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004778/0.3447, allocations: 1.698 MB / 405.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.3448, allocations: 194.8 kB / 405.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006867/0.3455, allocations: 480.3 kB / 406.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.245e-05/0.3456, allocations: 42.11 kB / 406.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.346, allocations: 426.5 kB / 406.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/0.3463, allocations: 285.6 kB / 407 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/0.3465, allocations: 167.7 kB / 407.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3467, allocations: 377.6 kB / 407.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005919/0.3473, allocations: 275.8 kB / 407.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007712/0.3481, allocations: 0.5179 MB / 408.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.3495, allocations: 0.8054 MB / 409.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3495, allocations: 1.438 kB / 409.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002246/0.3517, allocations: 1.08 MB / 410.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3518, allocations: 12.16 kB / 410.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.3518, allocations: 6.594 kB / 410.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009358/0.3527, allocations: 267.4 kB / 410.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006417/0.3534, allocations: 167.8 kB / 410.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005846/0.3592, allocations: 4.859 MB / 415.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008833/0.3602, allocations: 108.8 kB / 415.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.761e-05/0.3602, allocations: 37.81 kB / 415.6 MB, free: 5.055 MB / 334.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.0005031/0.3607, allocations: 252.4 kB / 415.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.3609, allocations: 73.41 kB / 415.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.3629, allocations: 0.9687 MB / 416.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.363, allocations: 8.531 kB / 416.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.363, allocations: 2.344 kB / 416.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.363, allocations: 7.984 kB / 416.9 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.3664, allocations: 1.934 MB / 418.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.3665, allocations: 5.516 kB / 418.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.3669, allocations: 93.95 kB / 419 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/0.3678, allocations: 266 kB / 419.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.3678, allocations: 22.52 kB / 419.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005447/0.3733, allocations: 4.809 MB / 424 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3733, allocations: 0.8594 kB / 424 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002714/0.376, allocations: 1.393 MB / 425.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.3765, allocations: 212 kB / 425.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.712e-05/0.3766, allocations: 24 kB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.377, allocations: 39.97 kB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.3772, allocations: 72.89 kB / 425.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.633e-05/0.3773, allocations: 20 kB / 425.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004742/0.3778, allocations: 323 kB / 426.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3778, allocations: 4 kB / 426.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00127/0.3791, allocations: 323 kB / 426.4 MB, free: 11.23 MB / 350.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.0003144/0.3794, allocations: 147 kB / 426.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.3815, allocations: 1.109 MB / 427.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.3815, allocations: 0 / 427.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.3827, allocations: 0.763 MB / 428.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006851/0.3834, allocations: 126.2 kB / 428.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3867, allocations: 1.711 MB / 430.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.3873, allocations: 0.9943 MB / 431.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3875, allocations: 67.41 kB / 431.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3875, allocations: 4 kB / 431.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of Templates: time 0.02158/0.4091, allocations: 17.54 MB / 448.9 MB, free: 4.625 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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