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.001502/0.001502, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001681/0.001681, allocations: 189.1 kB / 19.33 MB, free: 3.758 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.394/1.394, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.002287/0.002287, allocations: 51.92 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.0991, allocations: 46.61 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.2041/0.3033, allocations: 6.26 MB / 382.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004056/0.3074, allocations: 2.175 MB / 384.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005926/0.3081, allocations: 17.12 kB / 384.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.3101, allocations: 0.765 MB / 385 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001971/0.3121, allocations: 0.7897 MB / 385.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.3132, allocations: 493.2 kB / 386.3 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001448/0.3147, allocations: 1.198 MB / 387.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.3159, allocations: 0.8415 MB / 388.3 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007304/0.3166, allocations: 469.5 kB / 388.8 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007489/0.3174, allocations: 0.5462 MB / 389.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.3176, allocations: 111.4 kB / 389.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007487/0.3183, allocations: 267.6 kB / 389.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.3185, allocations: 253.7 kB / 390 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004993/0.319, allocations: 0.5502 MB / 390.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002111/0.3212, allocations: 1.461 MB / 392 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3212, allocations: 1.312 kB / 392 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3212, allocations: 4 kB / 392 MB, free: 5.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.3212, allocations: 0 / 392 MB, free: 5.395 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.003349/0.3246, allocations: 1.442 MB / 393.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3246, allocations: 9.625 kB / 393.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003038/0.3277, allocations: 479 kB / 393.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009421/0.3286, allocations: 0.5676 MB / 394.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.244e-05/0.3287, allocations: 75.81 kB / 394.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.3289, allocations: 109.1 kB / 394.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002084/0.331, allocations: 1.054 MB / 395.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/0.331, allocations: 5.734 kB / 395.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.3311, allocations: 42.75 kB / 395.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/0.3312, allocations: 28.47 kB / 395.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.333, allocations: 0.9144 MB / 396.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005574/0.3386, allocations: 3.714 MB / 400.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.3413, allocations: 2.481 MB / 402.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000984/0.3423, allocations: 476.2 kB / 403.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.3425, allocations: 95.23 kB / 403.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009702/0.3434, allocations: 0.4935 MB / 403.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.915e-06/0.3435, allocations: 0 / 403.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004768/0.3482, allocations: 1.705 MB / 405.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.3484, allocations: 190.5 kB / 405.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.3491, allocations: 473 kB / 406.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.853e-05/0.3492, allocations: 46.06 kB / 406.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.3496, allocations: 430 kB / 406.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.3499, allocations: 286 kB / 407 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/0.3501, allocations: 163.4 kB / 407.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3503, allocations: 380.9 kB / 407.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/0.351, allocations: 275.6 kB / 407.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008993/0.3519, allocations: 0.5225 MB / 408.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.3533, allocations: 0.8052 MB / 409.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3534, allocations: 4.094 kB / 409.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002155/0.3555, allocations: 1.074 MB / 410.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3556, allocations: 11.75 kB / 410.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.3556, allocations: 7.125 kB / 410.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009295/0.3565, allocations: 270.8 kB / 410.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.3572, allocations: 163.6 kB / 410.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005686/0.3629, allocations: 4.859 MB / 415.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008393/0.3637, allocations: 108.7 kB / 415.7 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.36e-05/0.3638, allocations: 42.25 kB / 415.7 MB, free: 4.988 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.0004958/0.3643, allocations: 249.4 kB / 415.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.3644, allocations: 74.41 kB / 416 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.3665, allocations: 0.9663 MB / 417 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.3665, allocations: 9.719 kB / 417 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3665, allocations: 0 / 417 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.3666, allocations: 3.984 kB / 417 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003504/0.3701, allocations: 1.938 MB / 418.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.3701, allocations: 1.312 kB / 418.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.3706, allocations: 103.9 kB / 419 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008551/0.3714, allocations: 265.9 kB / 419.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.529e-05/0.3715, allocations: 17.5 kB / 419.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/0.3768, allocations: 4.808 MB / 424.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3768, allocations: 4.219 kB / 424.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.3794, allocations: 1.389 MB / 425.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.3798, allocations: 219.9 kB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3799, allocations: 16 kB / 425.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.3804, allocations: 39.97 kB / 425.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.3806, allocations: 72.91 kB / 425.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.227e-05/0.3806, allocations: 27.98 kB / 425.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004147/0.3811, allocations: 326.8 kB / 426.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3811, allocations: 0 / 426.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001282/0.3824, allocations: 311.1 kB / 426.5 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.0003342/0.3827, allocations: 155.1 kB / 426.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.3849, allocations: 1.109 MB / 427.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.3849, allocations: 0 / 427.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.3861, allocations: 0.7514 MB / 428.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006841/0.3868, allocations: 129.5 kB / 428.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.39, allocations: 1.719 MB / 430.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006525/0.3907, allocations: 0.9944 MB / 431.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.3909, allocations: 59.42 kB / 431.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3909, allocations: 0 / 431.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of Templates: time 0.03297/0.4239, allocations: 17.62 MB / 449 MB, free: 4.496 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