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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 113.3 kB / 17.72 MB, free: 5.418 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.001248/0.001248, allocations: 184.1 kB / 18.65 MB, free: 4.496 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.343/1.343, allocations: 205.1 MB / 224.5 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.001412/0.001412, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09385, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.2124/0.3063, allocations: 6.258 MB / 380.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003755/0.3101, allocations: 2.173 MB / 383.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003659/0.3106, allocations: 20.44 kB / 383.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.3122, allocations: 0.7638 MB / 383.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001605/0.3139, allocations: 0.7891 MB / 384.7 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009651/0.3148, allocations: 498.4 kB / 385.1 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.3159, allocations: 1.194 MB / 386.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.317, allocations: 0.8393 MB / 387.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005123/0.3175, allocations: 465.5 kB / 387.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006509/0.3182, allocations: 0.5502 MB / 388.2 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.3184, allocations: 110.2 kB / 388.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005751/0.3189, allocations: 273.2 kB / 388.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001901/0.3191, allocations: 253.8 kB / 388.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004806/0.3196, allocations: 0.5459 MB / 389.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.3214, allocations: 1.474 MB / 390.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3214, allocations: 0 / 390.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3215, allocations: 1.219 kB / 390.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.3215, allocations: 0 / 390.8 MB, free: 5.457 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.003087/0.3246, allocations: 1.475 MB / 392.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3246, allocations: 9 kB / 392.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002374/0.3249, allocations: 163.4 kB / 392.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.3279, allocations: 477.5 kB / 392.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.329, allocations: 0.5784 MB / 393.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.726e-05/0.3291, allocations: 80.75 kB / 393.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.3292, allocations: 109.4 kB / 393.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001955/0.3312, allocations: 1.058 MB / 394.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.3312, allocations: 1.188 kB / 394.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.09e-05/0.3313, allocations: 47.2 kB / 394.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.3314, allocations: 25.66 kB / 394.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001833/0.3332, allocations: 0.9222 MB / 395.7 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005418/0.3386, allocations: 3.726 MB / 399.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.3412, allocations: 2.475 MB / 401.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009771/0.3422, allocations: 479.3 kB / 402.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.3423, allocations: 91.12 kB / 402.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009406/0.3433, allocations: 0.4959 MB / 403 MB, free: 13.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.876e-06/0.3433, allocations: 0 / 403 MB, free: 13.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.00468/0.348, allocations: 1.694 MB / 404.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.3481, allocations: 203.3 kB / 404.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006802/0.3488, allocations: 480 kB / 405.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.3489, allocations: 42.3 kB / 405.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.3493, allocations: 443.9 kB / 405.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.3496, allocations: 299.7 kB / 406.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.3499, allocations: 163.5 kB / 406.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3501, allocations: 385 kB / 406.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005917/0.3506, allocations: 271.7 kB / 406.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007928/0.3515, allocations: 0.5228 MB / 407.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.3529, allocations: 0.8006 MB / 408.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.3529, allocations: 4.469 kB / 408.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002313/0.3552, allocations: 1.083 MB / 409.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.3553, allocations: 11.81 kB / 409.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.3553, allocations: 6.531 kB / 409.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000981/0.3563, allocations: 274.5 kB / 409.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006348/0.3569, allocations: 155.4 kB / 409.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006496/0.3634, allocations: 4.869 MB / 414.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.3648, allocations: 105.9 kB / 414.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.3649, allocations: 40.73 kB / 414.8 MB, free: 4.879 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.0007839/0.3657, allocations: 253.1 kB / 415 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.3659, allocations: 75.38 kB / 415.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.3682, allocations: 0.956 MB / 416.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.3682, allocations: 8.781 kB / 416.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3683, allocations: 0 / 416.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.3683, allocations: 9.328 kB / 416.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.3723, allocations: 1.947 MB / 418 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.3723, allocations: 4 kB / 418 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.3728, allocations: 103.4 kB / 418.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007784/0.3736, allocations: 266 kB / 418.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.3736, allocations: 21.52 kB / 418.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00539/0.379, allocations: 4.812 MB / 423.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3791, allocations: 0 / 423.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/0.3818, allocations: 1.393 MB / 424.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004233/0.3822, allocations: 216.7 kB / 424.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.3824, allocations: 20 kB / 424.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005332/0.3829, allocations: 48.03 kB / 424.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.3832, allocations: 76.83 kB / 425 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.3832, allocations: 23.98 kB / 425 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004559/0.3837, allocations: 326.9 kB / 425.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3837, allocations: 4 kB / 425.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001424/0.3851, allocations: 315.3 kB / 425.6 MB, free: 11.2 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.003086/0.3882, allocations: 1.984 MB / 427.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.3905, allocations: 1.119 MB / 428.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3905, allocations: 0 / 428.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.3919, allocations: 0.7597 MB / 429.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008723/0.3928, allocations: 115.4 kB / 429.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.4041, allocations: 6.682 MB / 436.3 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.4049, allocations: 0.9983 MB / 437.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004083/0.4054, allocations: 85.67 kB / 437.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.4058, allocations: 327.3 kB / 437.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4058, allocations: 0 / 437.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05222/0.4581, allocations: 19.48 MB / 457.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.49, allocations: 7.781 kB / 457.2 MB, free: 11.17 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > 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.csv","/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) Reference file matches