Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_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.001783/0.001783, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.0019/0.0019, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00243/0.00243, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2928, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008305/0.3011, allocations: 6.217 MB / 406.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004089/0.3052, allocations: 2.132 MB / 408.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007964/0.3061, allocations: 16 kB / 408.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.3082, allocations: 0.75 MB / 409.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001973/0.3102, allocations: 0.771 MB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3112, allocations: 494.8 kB / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.3125, allocations: 1.175 MB / 411.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.3137, allocations: 0.8431 MB / 412.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005344/0.3143, allocations: 446.4 kB / 413.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000708/0.315, allocations: 0.5445 MB / 413.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.3151, allocations: 112 kB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005493/0.3157, allocations: 263.9 kB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002334/0.3159, allocations: 255.1 kB / 414.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005223/0.3165, allocations: 0.5403 MB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.3181, allocations: 1.447 MB / 416.2 MB, free: 8.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3182, allocations: 0 / 416.2 MB, free: 8.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3182, allocations: 4 kB / 416.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.3182, allocations: 0 / 416.2 MB, free: 8.75 MB / 334.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.003053/0.3212, allocations: 1.45 MB / 417.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3213, allocations: 12.03 kB / 417.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002364/0.3215, allocations: 162.3 kB / 417.8 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.3237, allocations: 372 kB / 418.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008689/0.3246, allocations: 0.566 MB / 418.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.777e-05/0.3247, allocations: 74.38 kB / 418.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3248, allocations: 108.3 kB / 418.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.3267, allocations: 1.02 MB / 420 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.3267, allocations: 0 / 420 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.733e-05/0.3268, allocations: 47.94 kB / 420 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.3268, allocations: 24 kB / 420 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.3285, allocations: 0.8628 MB / 420.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005124/0.3337, allocations: 3.516 MB / 424.4 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.3361, allocations: 1.899 MB / 426.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009558/0.3371, allocations: 467.5 kB / 426.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.3372, allocations: 97.73 kB / 426.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008837/0.3381, allocations: 0.4929 MB / 427.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.314e-06/0.3382, allocations: 0 / 427.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004554/0.3427, allocations: 1.678 MB / 429 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.3428, allocations: 192.9 kB / 429.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005379/0.3434, allocations: 462 kB / 429.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.3435, allocations: 45.7 kB / 429.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/0.3438, allocations: 424.7 kB / 430.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.344, allocations: 285.6 kB / 430.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.3443, allocations: 158.6 kB / 430.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3445, allocations: 366.8 kB / 430.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005569/0.345, allocations: 273.8 kB / 431.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007418/0.3458, allocations: 483.2 kB / 431.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3471, allocations: 0.7473 MB / 432.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.3471, allocations: 4 kB / 432.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001984/0.3491, allocations: 1.037 MB / 433.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3491, allocations: 4 kB / 433.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.3492, allocations: 8 kB / 433.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008697/0.35, allocations: 269.5 kB / 433.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005502/0.3506, allocations: 139.8 kB / 433.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005808/0.3564, allocations: 4.882 MB / 438.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.357, allocations: 99.52 kB / 438.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.421e-05/0.3571, allocations: 31.98 kB / 438.9 MB, free: 0.9102 MB / 350.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.0003934/0.3575, allocations: 241.7 kB / 439.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.3576, allocations: 75.5 kB / 439.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/0.3597, allocations: 0.9632 MB / 440.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3597, allocations: 8 kB / 440.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.3597, allocations: 0 / 440.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3597, allocations: 3.984 kB / 440.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.3629, allocations: 1.917 MB / 442.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.3629, allocations: 4.062 kB / 442.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.3634, allocations: 95.88 kB / 442.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007986/0.3642, allocations: 268.6 kB / 442.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.145e-05/0.3642, allocations: 20 kB / 442.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00553/0.3698, allocations: 4.813 MB / 447.3 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3698, allocations: 4.062 kB / 447.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.3724, allocations: 1.37 MB / 448.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.3727, allocations: 216.4 kB / 448.9 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.191e-05/0.3728, allocations: 20 kB / 448.9 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.3732, allocations: 43.97 kB / 448.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.3734, allocations: 76.75 kB / 449 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.935e-05/0.3735, allocations: 27.92 kB / 449 MB, free: 6.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003696/0.3738, allocations: 314.9 kB / 449.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3738, allocations: 0 / 449.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3749, allocations: 307.3 kB / 449.6 MB, free: 5.734 MB / 366.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.003009/0.3779, allocations: 1.982 MB / 451.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.38, allocations: 1.096 MB / 452.7 MB, free: 2.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.38, allocations: 0 / 452.7 MB, free: 2.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.3812, allocations: 0.7474 MB / 453.5 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.3818, allocations: 120.8 kB / 453.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.3918, allocations: 6.449 MB / 460 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000701/0.3926, allocations: 0.998 MB / 461 MB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003441/0.3929, allocations: 85.33 kB / 461.1 MB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004165/0.3933, allocations: 323.3 kB / 461.4 MB, free: 9.574 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3934, allocations: 0 / 461.4 MB, free: 9.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05432/0.4477, allocations: 19.14 MB / 480.6 MB, free: 6.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.08, allocations: 22.53 kB / 480.6 MB, free: 6.715 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches