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.0009228/0.0009227, allocations: 95.78 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002164/0.0002164, allocations: 8 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09042, allocations: 51.53 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005722/0.09617, allocations: 5.791 MB / 365 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.09966, allocations: 2.185 MB / 367.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004184/0.1001, allocations: 19.94 kB / 367.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005572/0.1007, allocations: 238.8 kB / 367.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001201/0.1019, allocations: 0.5362 MB / 368 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008988/0.1028, allocations: 486.7 kB / 368.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009668/0.1038, allocations: 1.121 MB / 369.6 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.1053, allocations: 1.057 MB / 370.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005768/0.1059, allocations: 386.2 kB / 371 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005578/0.1064, allocations: 473.6 kB / 371.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.384e-05/0.1066, allocations: 52 kB / 371.6 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005141/0.1071, allocations: 219.8 kB / 371.8 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.1073, allocations: 179.1 kB / 372 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004474/0.1077, allocations: 0.499 MB / 372.5 MB, free: 0 / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1672/0.275, allocations: 1.358 MB / 373.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.275, allocations: 0.9375 kB / 373.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.275, allocations: 0 / 373.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.808e-05/0.275, allocations: 0 / 373.8 MB, free: 10.65 MB / 302.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.003048/0.2781, allocations: 1.277 MB / 375.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.2782, allocations: 9.094 kB / 375.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002621/0.2808, allocations: 417.1 kB / 375.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008488/0.2816, allocations: 0.5806 MB / 376.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.872e-05/0.2817, allocations: 75.53 kB / 376.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.282, allocations: 102.5 kB / 376.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.2841, allocations: 1.025 MB / 377.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.2842, allocations: 5.594 kB / 377.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.044e-05/0.2843, allocations: 45.88 kB / 377.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.2843, allocations: 23.38 kB / 377.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.286, allocations: 0.8743 MB / 378.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.291, allocations: 3.657 MB / 381.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.2931, allocations: 1.92 MB / 383.8 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009606/0.2941, allocations: 472.6 kB / 384.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.2942, allocations: 176.1 kB / 384.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009311/0.2951, allocations: 0.4991 MB / 384.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.435e-06/0.2952, allocations: 0 / 384.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004587/0.2998, allocations: 1.736 MB / 386.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.2998, allocations: 197.4 kB / 386.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005597/0.3004, allocations: 482.5 kB / 387.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/0.3005, allocations: 43.77 kB / 387.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.3007, allocations: 419.2 kB / 387.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.3009, allocations: 277.5 kB / 388.1 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.301, allocations: 80.2 kB / 388.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3011, allocations: 374.5 kB / 388.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005562/0.3016, allocations: 281 kB / 388.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006445/0.3023, allocations: 0.4941 MB / 389.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.3035, allocations: 0.7616 MB / 390 MB, free: 3.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3035, allocations: 3 kB / 390 MB, free: 3.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001939/0.3055, allocations: 1.054 MB / 391.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3055, allocations: 7.781 kB / 391.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3055, allocations: 9.062 kB / 391.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000834/0.3064, allocations: 268.6 kB / 391.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000587/0.307, allocations: 157.1 kB / 391.5 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004747/0.3117, allocations: 4.4 MB / 395.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/0.3125, allocations: 109.2 kB / 396 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-05/0.3126, allocations: 34.28 kB / 396.1 MB, free: 15.06 MB / 318.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.0004979/0.3131, allocations: 246.8 kB / 396.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3133, allocations: 71.72 kB / 396.4 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.3154, allocations: 0.9899 MB / 397.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3154, allocations: 9.062 kB / 397.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3154, allocations: 9.516 kB / 397.4 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3154, allocations: 3.984 kB / 397.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.3187, allocations: 1.941 MB / 399.3 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3188, allocations: 0.6875 kB / 399.3 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.3192, allocations: 105.7 kB / 399.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007303/0.3199, allocations: 258.8 kB / 399.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.32, allocations: 20.62 kB / 399.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00476/0.3248, allocations: 4.366 MB / 404.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3248, allocations: 0 / 404.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.3275, allocations: 1.414 MB / 405.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.3279, allocations: 215.8 kB / 405.7 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.328, allocations: 18.47 kB / 405.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.3285, allocations: 56.23 kB / 405.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.3287, allocations: 62.81 kB / 405.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.231e-05/0.3287, allocations: 30.7 kB / 405.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004038/0.3291, allocations: 325.5 kB / 406.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3291, allocations: 0 / 406.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001173/0.3303, allocations: 319.2 kB / 406.5 MB, free: 7.703 MB / 318.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.00027/0.3306, allocations: 150.1 kB / 406.6 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.3326, allocations: 1.098 MB / 407.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3327, allocations: 4 kB / 407.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3338, allocations: 0.74 MB / 408.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007514/0.3345, allocations: 120.1 kB / 408.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.3379, allocations: 2.131 MB / 410.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.3386, allocations: 0.9982 MB / 411.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.339, allocations: 85.47 kB / 411.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.3391, allocations: 47.42 kB / 411.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3391, allocations: 0 / 411.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of Templates: time 0.01981/0.359, allocations: 11.54 MB / 423.4 MB, free: 6.969 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches