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.001063/0.001063, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001201/0.001202, allocations: 183.1 kB / 18.66 MB, free: 4.438 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.39/1.39, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001103/0.001103, allocations: 43.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1024, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.2094/0.3119, allocations: 6.254 MB / 381.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003412/0.3153, allocations: 2.173 MB / 383.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.3158, allocations: 20.69 kB / 383.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.3175, allocations: 0.7675 MB / 384.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001495/0.319, allocations: 0.7846 MB / 385.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.3199, allocations: 498.3 kB / 385.6 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.3212, allocations: 1.194 MB / 386.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.3223, allocations: 0.8366 MB / 387.7 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005719/0.3229, allocations: 471.9 kB / 388.1 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.3239, allocations: 0.55 MB / 388.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002793/0.3242, allocations: 111.2 kB / 388.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.3252, allocations: 263.7 kB / 389 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002615/0.3255, allocations: 258.1 kB / 389.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005767/0.326, allocations: 0.5463 MB / 389.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002088/0.3281, allocations: 1.472 MB / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3282, allocations: 0 / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3282, allocations: 0 / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.3282, allocations: 1.219 kB / 391.3 MB, free: 5.406 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.002823/0.331, allocations: 1.474 MB / 392.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3311, allocations: 10.19 kB / 392.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002886/0.334, allocations: 485.1 kB / 393.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008131/0.3348, allocations: 0.5703 MB / 393.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.661e-05/0.3349, allocations: 80.22 kB / 393.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.335, allocations: 105.4 kB / 394 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.3368, allocations: 1.053 MB / 395.1 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.3369, allocations: 6.453 kB / 395.1 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.337, allocations: 43.08 kB / 395.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.337, allocations: 29.75 kB / 395.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.3387, allocations: 0.9158 MB / 396.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005658/0.3444, allocations: 3.718 MB / 399.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.3469, allocations: 2.488 MB / 402.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000943/0.3479, allocations: 472.8 kB / 402.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.348, allocations: 94.39 kB / 402.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009133/0.3489, allocations: 0.49 MB / 403.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.405e-06/0.349, allocations: 1.25 kB / 403.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004739/0.3537, allocations: 1.704 MB / 405 MB, free: 12.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.3538, allocations: 194.8 kB / 405.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.3545, allocations: 472.5 kB / 405.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/0.3546, allocations: 46.44 kB / 405.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.3549, allocations: 438.6 kB / 406.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.3552, allocations: 303.9 kB / 406.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/0.3555, allocations: 168.1 kB / 406.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.3558, allocations: 376.5 kB / 407 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.3564, allocations: 280.4 kB / 407.2 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000829/0.3572, allocations: 0.5219 MB / 407.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3585, allocations: 0.8012 MB / 408.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.3586, allocations: 2 kB / 408.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002245/0.3608, allocations: 1.075 MB / 409.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3608, allocations: 8.594 kB / 409.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.3609, allocations: 11.88 kB / 409.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008545/0.3617, allocations: 274.4 kB / 409.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.3623, allocations: 160.8 kB / 410.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00581/0.3681, allocations: 4.866 MB / 415 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007608/0.3689, allocations: 104.2 kB / 415.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.746e-05/0.369, allocations: 36.94 kB / 415.1 MB, free: 4.926 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.0004432/0.3695, allocations: 258.6 kB / 415.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.3696, allocations: 81.75 kB / 415.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.3717, allocations: 0.9636 MB / 416.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.3718, allocations: 9.406 kB / 416.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3718, allocations: 0 / 416.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.3718, allocations: 5.797 kB / 416.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003423/0.3752, allocations: 1.944 MB / 418.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3752, allocations: 1.25 kB / 418.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.3757, allocations: 98.41 kB / 418.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007896/0.3765, allocations: 266.3 kB / 418.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.3766, allocations: 18.75 kB / 418.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005309/0.3819, allocations: 4.815 MB / 423.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.3819, allocations: 4.031 kB / 423.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3845, allocations: 1.389 MB / 424.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003351/0.3848, allocations: 224.3 kB / 425.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.907e-05/0.3849, allocations: 16 kB / 425.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.3854, allocations: 43.97 kB / 425.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.3856, allocations: 64.91 kB / 425.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.228e-05/0.3856, allocations: 35.98 kB / 425.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003701/0.386, allocations: 322.8 kB / 425.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.386, allocations: 4.125 kB / 425.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3872, allocations: 307.4 kB / 425.9 MB, free: 11.11 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.0002744/0.3874, allocations: 159 kB / 426.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.3895, allocations: 1.124 MB / 427.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3895, allocations: 4 kB / 427.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3907, allocations: 0.7393 MB / 428 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006623/0.3914, allocations: 125.7 kB / 428.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.3944, allocations: 1.711 MB / 429.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.3951, allocations: 0.9983 MB / 430.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000351/0.3955, allocations: 89.64 kB / 430.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.3956, allocations: 47.44 kB / 430.9 MB, free: 6 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3956, allocations: 0 / 430.9 MB, free: 6 MB / 350.1 MB Notification: Performance of Templates: time 0.02097/0.4166, allocations: 12.69 MB / 443.6 MB, free: 9.289 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches