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.00131/0.00131, allocations: 110.2 kB / 17.06 MB, free: 5.82 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.00126/0.00126, allocations: 195 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.284, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.00752/0.2916, allocations: 6.214 MB / 406.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004474/0.2961, allocations: 2.136 MB / 408.6 MB, free: 452 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008572/0.297, allocations: 19.94 kB / 408.6 MB, free: 432 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.2993, allocations: 0.7527 MB / 409.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002271/0.3016, allocations: 0.7689 MB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.303, allocations: 498.7 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.305, allocations: 1.168 MB / 411.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.3066, allocations: 0.8392 MB / 412.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007721/0.3074, allocations: 462.3 kB / 413.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009239/0.3083, allocations: 0.5406 MB / 413.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002644/0.3086, allocations: 108 kB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007431/0.3093, allocations: 271.8 kB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.3096, allocations: 247.1 kB / 414.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007537/0.3104, allocations: 0.5403 MB / 414.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002016/0.3124, allocations: 1.451 MB / 416.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3125, allocations: 0 / 416.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3125, allocations: 0 / 416.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.458e-05/0.3125, allocations: 0 / 416.2 MB, free: 8.762 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.003649/0.3162, allocations: 1.457 MB / 417.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3162, allocations: 8.031 kB / 417.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003058/0.3166, allocations: 170.3 kB / 417.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002243/0.3188, allocations: 368 kB / 418.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009628/0.3198, allocations: 0.5621 MB / 418.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.319e-05/0.3199, allocations: 82.31 kB / 418.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.32, allocations: 108.3 kB / 419 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3219, allocations: 1.016 MB / 420 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.3219, allocations: 4 kB / 420 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.322, allocations: 44 kB / 420 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.3221, allocations: 31.88 kB / 420.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.3238, allocations: 0.8511 MB / 420.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005528/0.3293, allocations: 3.52 MB / 424.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.3318, allocations: 1.903 MB / 426.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009587/0.3328, allocations: 459.5 kB / 426.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.3329, allocations: 101.7 kB / 426.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009035/0.3338, allocations: 0.489 MB / 427.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 3.096e-06/0.3339, allocations: 0 / 427.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004722/0.3386, allocations: 1.69 MB / 429.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.3387, allocations: 192.9 kB / 429.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.3394, allocations: 453.9 kB / 429.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.939e-05/0.3395, allocations: 45.69 kB / 429.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.3398, allocations: 428.7 kB / 430.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.3401, allocations: 285.5 kB / 430.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.3404, allocations: 158.6 kB / 430.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3405, allocations: 370.8 kB / 430.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005863/0.3411, allocations: 269.9 kB / 431.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000776/0.3419, allocations: 487.2 kB / 431.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.3432, allocations: 0.7473 MB / 432.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.3433, allocations: 0 / 432.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002078/0.3453, allocations: 1.037 MB / 433.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.3454, allocations: 8 kB / 433.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.3454, allocations: 4 kB / 433.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008902/0.3463, allocations: 265.5 kB / 433.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005741/0.3469, allocations: 147.7 kB / 433.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005806/0.3527, allocations: 4.872 MB / 438.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/0.3535, allocations: 95.44 kB / 438.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.3536, allocations: 36 kB / 438.9 MB, free: 0.9219 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.000497/0.3541, allocations: 248.6 kB / 439.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.3543, allocations: 79.52 kB / 439.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.3564, allocations: 0.9554 MB / 440.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3564, allocations: 12 kB / 440.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3565, allocations: 4 kB / 440.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3565, allocations: 3.984 kB / 440.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003336/0.3598, allocations: 1.902 MB / 442.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3598, allocations: 3.938 kB / 442.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.3603, allocations: 99.88 kB / 442.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008101/0.3611, allocations: 265.5 kB / 442.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.219e-05/0.3612, allocations: 19.98 kB / 442.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005461/0.3667, allocations: 4.821 MB / 447.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3667, allocations: 0 / 447.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.3694, allocations: 1.374 MB / 448.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.3698, allocations: 220.4 kB / 448.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.37, allocations: 19.98 kB / 448.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.3705, allocations: 39.97 kB / 448.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.3707, allocations: 76.75 kB / 449 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.628e-05/0.3708, allocations: 27.92 kB / 449 MB, free: 6.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004049/0.3712, allocations: 314.9 kB / 449.3 MB, free: 6.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3712, allocations: 0 / 449.3 MB, free: 6.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001158/0.3724, allocations: 311.3 kB / 449.6 MB, free: 5.738 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.003031/0.3754, allocations: 1.981 MB / 451.6 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.3775, allocations: 1.087 MB / 452.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/0.3775, allocations: 3.984 kB / 452.7 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.3788, allocations: 0.7404 MB / 453.5 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.3796, allocations: 125.6 kB / 453.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.3902, allocations: 6.449 MB / 460 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006993/0.3909, allocations: 0.9942 MB / 461 MB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000352/0.3913, allocations: 85.27 kB / 461.1 MB, free: 9.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.3917, allocations: 319.3 kB / 461.4 MB, free: 9.594 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3917, allocations: 0 / 461.4 MB, free: 9.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06571/0.4574, allocations: 19.15 MB / 480.6 MB, free: 6.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/14.93, allocations: 11.67 kB / 480.6 MB, free: 6.723 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