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.001092/0.001092, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001132/0.001132, allocations: 187 kB / 18.67 MB, free: 4.414 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.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00114/0.00114, allocations: 51.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09233, allocations: 46.61 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.1834/0.2757, allocations: 6.253 MB / 381.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003447/0.2792, allocations: 2.177 MB / 383.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003751/0.2796, allocations: 21.97 kB / 383.6 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.2814, allocations: 0.7622 MB / 384.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.2828, allocations: 0.7939 MB / 385.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008571/0.2837, allocations: 494.1 kB / 385.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.2847, allocations: 1.195 MB / 386.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000983/0.2857, allocations: 0.8489 MB / 387.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004544/0.2862, allocations: 459.5 kB / 388.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005956/0.2868, allocations: 0.5577 MB / 388.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.287, allocations: 110.8 kB / 388.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.2874, allocations: 264.8 kB / 389.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.2876, allocations: 255 kB / 389.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.288, allocations: 0.5456 MB / 389.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.2895, allocations: 1.474 MB / 391.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2895, allocations: 1.062 kB / 391.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2895, allocations: 0 / 391.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.2895, allocations: 0 / 391.3 MB, free: 5.398 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.002746/0.2923, allocations: 1.436 MB / 392.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.2923, allocations: 10.28 kB / 392.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.2953, allocations: 480.1 kB / 393.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008056/0.2961, allocations: 0.5622 MB / 393.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.2962, allocations: 81.55 kB / 393.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.2963, allocations: 100.5 kB / 394 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2981, allocations: 1.057 MB / 395 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.2982, allocations: 5.156 kB / 395 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.281e-05/0.2982, allocations: 42.83 kB / 395.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.2983, allocations: 29.47 kB / 395.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3, allocations: 0.921 MB / 396 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004732/0.3047, allocations: 3.708 MB / 399.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.3073, allocations: 2.488 MB / 402.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009462/0.3083, allocations: 473.2 kB / 402.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.3084, allocations: 96.88 kB / 402.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000932/0.3093, allocations: 0.4961 MB / 403.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.785e-06/0.3094, allocations: 0 / 403.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004438/0.3138, allocations: 1.692 MB / 405 MB, free: 12.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.3139, allocations: 199.5 kB / 405.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.3145, allocations: 476.1 kB / 405.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.547e-05/0.3146, allocations: 43.17 kB / 405.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.3148, allocations: 428.8 kB / 406.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.3151, allocations: 279.3 kB / 406.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.3153, allocations: 167.8 kB / 406.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3155, allocations: 376.5 kB / 406.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.3161, allocations: 288 kB / 407.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007258/0.3168, allocations: 0.514 MB / 407.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.3181, allocations: 0.8095 MB / 408.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3181, allocations: 1.531 kB / 408.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002076/0.3202, allocations: 1.073 MB / 409.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3202, allocations: 11.14 kB / 409.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3202, allocations: 6.969 kB / 409.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000881/0.3211, allocations: 267.6 kB / 409.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005998/0.3217, allocations: 162.8 kB / 410 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005663/0.3274, allocations: 4.868 MB / 414.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.3281, allocations: 110.1 kB / 415 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.883e-05/0.3281, allocations: 35.78 kB / 415 MB, free: 5.008 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.0003422/0.3285, allocations: 246 kB / 415.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3286, allocations: 77.31 kB / 415.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.3305, allocations: 0.9647 MB / 416.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3305, allocations: 8.5 kB / 416.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3306, allocations: 0.875 kB / 416.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3306, allocations: 6.109 kB / 416.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.3336, allocations: 1.937 MB / 418.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3337, allocations: 0 / 418.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.3341, allocations: 98.75 kB / 418.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007556/0.3349, allocations: 267 kB / 418.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.3349, allocations: 22.12 kB / 418.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.34, allocations: 4.813 MB / 423.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.34, allocations: 192 / 423.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.3424, allocations: 1.393 MB / 424.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.3427, allocations: 219.9 kB / 425.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.777e-05/0.3428, allocations: 20 kB / 425.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.3432, allocations: 39.97 kB / 425.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.3434, allocations: 68.91 kB / 425.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.795e-05/0.3435, allocations: 27.92 kB / 425.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003454/0.3438, allocations: 326.8 kB / 425.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3438, allocations: 0 / 425.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001/0.3449, allocations: 315.1 kB / 425.8 MB, free: 11.18 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.0002507/0.3451, allocations: 147.2 kB / 426 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.347, allocations: 1.105 MB / 427.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.347, allocations: 4.188 kB / 427.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.3481, allocations: 0.7506 MB / 427.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.3488, allocations: 134.4 kB / 428 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002767/0.3516, allocations: 1.674 MB / 429.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.3521, allocations: 0.9944 MB / 430.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.3525, allocations: 89.64 kB / 430.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3526, allocations: 55.42 kB / 430.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3526, allocations: 0 / 430.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of Templates: time 0.01959/0.3722, allocations: 12.69 MB / 443.5 MB, free: 9.414 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