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.00108/0.00108, allocations: 114.5 kB / 17.73 MB, free: 5.301 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.001151/0.001151, allocations: 187 kB / 18.66 MB, free: 4.375 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.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001467/0.001467, allocations: 51.94 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08858, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.199/0.2876, allocations: 6.254 MB / 380.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.2914, allocations: 2.171 MB / 383.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004694/0.2919, allocations: 22 kB / 383.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.2938, allocations: 0.7581 MB / 383.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001936/0.2957, allocations: 0.802 MB / 384.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.2968, allocations: 495.7 kB / 385.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.2981, allocations: 1.193 MB / 386.3 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.2993, allocations: 0.8384 MB / 387.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005537/0.2998, allocations: 462.4 kB / 387.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006262/0.3005, allocations: 0.5532 MB / 388.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.3006, allocations: 114.9 kB / 388.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006545/0.3013, allocations: 265.2 kB / 388.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.3015, allocations: 253.6 kB / 388.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004593/0.302, allocations: 0.5508 MB / 389.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.3037, allocations: 1.473 MB / 390.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3037, allocations: 1.125 kB / 390.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3038, allocations: 0 / 390.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.178e-05/0.3038, allocations: 0.5625 kB / 390.8 MB, free: 5.445 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.003192/0.307, allocations: 1.471 MB / 392.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.307, allocations: 10.62 kB / 392.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002441/0.3073, allocations: 162.9 kB / 392.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003059/0.3104, allocations: 474 kB / 392.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009254/0.3113, allocations: 0.5811 MB / 393.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.938e-05/0.3114, allocations: 81.83 kB / 393.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.3115, allocations: 108.5 kB / 393.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.3135, allocations: 1.057 MB / 394.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.3135, allocations: 1.922 kB / 394.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3136, allocations: 51.64 kB / 394.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.3137, allocations: 28.02 kB / 394.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.3155, allocations: 0.9189 MB / 395.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005926/0.3214, allocations: 3.724 MB / 399.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003129/0.3246, allocations: 2.474 MB / 402 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.3257, allocations: 480.4 kB / 402.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.3259, allocations: 90.78 kB / 402.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009767/0.3268, allocations: 0.4946 MB / 403 MB, free: 13.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.146e-06/0.3269, allocations: 0 / 403 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004909/0.3318, allocations: 1.706 MB / 404.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.3319, allocations: 194.5 kB / 404.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007374/0.3327, allocations: 477.6 kB / 405.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.3328, allocations: 42.2 kB / 405.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00042/0.3332, allocations: 442.2 kB / 405.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.3335, allocations: 304.3 kB / 406.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.3338, allocations: 167.9 kB / 406.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.334, allocations: 376 kB / 406.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006118/0.3346, allocations: 276.6 kB / 406.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008311/0.3355, allocations: 0.522 MB / 407.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.337, allocations: 0.7974 MB / 408.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/0.337, allocations: 8.156 kB / 408.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002344/0.3393, allocations: 1.079 MB / 409.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3394, allocations: 7.062 kB / 409.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3394, allocations: 7.094 kB / 409.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009498/0.3403, allocations: 282.8 kB / 409.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.341, allocations: 155.4 kB / 409.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006092/0.3471, allocations: 4.867 MB / 414.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008859/0.348, allocations: 101.3 kB / 414.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-05/0.3481, allocations: 42.95 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.0004805/0.3486, allocations: 254.7 kB / 415 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.3487, allocations: 79.08 kB / 415.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.3507, allocations: 0.9604 MB / 416.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.3507, allocations: 12.38 kB / 416.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3507, allocations: 1.531 kB / 416.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3507, allocations: 3.984 kB / 416.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.354, allocations: 1.943 MB / 418 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.354, allocations: 9.469 kB / 418.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.3545, allocations: 98.84 kB / 418.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000785/0.3553, allocations: 266.6 kB / 418.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.028e-05/0.3553, allocations: 17.88 kB / 418.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005384/0.3607, allocations: 4.816 MB / 423.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3607, allocations: 3.938 kB / 423.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.3634, allocations: 1.393 MB / 424.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003782/0.3638, allocations: 212.7 kB / 424.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3639, allocations: 23.98 kB / 424.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.3644, allocations: 39.91 kB / 424.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.3646, allocations: 72.84 kB / 425 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.3646, allocations: 27.98 kB / 425 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003683/0.365, allocations: 322.9 kB / 425.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.365, allocations: 4 kB / 425.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001152/0.3662, allocations: 315.3 kB / 425.6 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.003047/0.3692, allocations: 1.984 MB / 427.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.3715, allocations: 1.119 MB / 428.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3716, allocations: 0 / 428.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.3728, allocations: 0.7599 MB / 429.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000715/0.3735, allocations: 120.4 kB / 429.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.3838, allocations: 6.676 MB / 436.3 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/0.3846, allocations: 0.9983 MB / 437.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.3851, allocations: 89.64 kB / 437.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/0.3855, allocations: 323.3 kB / 437.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of SimCode: time 1.492e-06/0.3855, allocations: 0 / 437.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05357/0.4391, allocations: 19.5 MB / 457.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.49/15.93, allocations: 3.781 kB / 457.2 MB, free: 11.13 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