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.001361/0.001361, allocations: 111.9 kB / 17.06 MB, free: 5.996 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.001528/0.001529, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.341, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.01346/0.3545, allocations: 6.232 MB / 406.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006728/0.3613, allocations: 2.121 MB / 408.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001157/0.3625, allocations: 19.94 kB / 408.6 MB, free: 420 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.3648, allocations: 0.7539 MB / 409.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.3671, allocations: 0.7728 MB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.3684, allocations: 486.7 kB / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002207/0.3706, allocations: 1.176 MB / 411.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.3725, allocations: 0.8431 MB / 412.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009363/0.3735, allocations: 454.3 kB / 413.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.3746, allocations: 0.5406 MB / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004138/0.375, allocations: 108 kB / 413.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009826/0.376, allocations: 271.8 kB / 414 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003931/0.3764, allocations: 251.1 kB / 414.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007926/0.3773, allocations: 0.5326 MB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002171/0.3794, allocations: 1.455 MB / 416.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.3795, allocations: 0 / 416.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3795, allocations: 0 / 416.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.889e-05/0.3795, allocations: 8 kB / 416.2 MB, free: 8.738 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.003673/0.3832, allocations: 1.446 MB / 417.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.3833, allocations: 15.89 kB / 417.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002379/0.3835, allocations: 162.3 kB / 417.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00214/0.3856, allocations: 372 kB / 418.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009284/0.3866, allocations: 0.5621 MB / 418.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/0.3867, allocations: 82.38 kB / 418.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.3868, allocations: 100.3 kB / 419 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.3886, allocations: 1.031 MB / 420 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.3887, allocations: 0 / 420 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.405e-05/0.3888, allocations: 40 kB / 420 MB, free: 4.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.3888, allocations: 27.94 kB / 420.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.3904, allocations: 0.8666 MB / 420.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.3952, allocations: 3.508 MB / 424.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002207/0.3974, allocations: 1.899 MB / 426.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008931/0.3983, allocations: 467.4 kB / 426.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.3984, allocations: 93.77 kB / 426.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008375/0.3993, allocations: 0.4929 MB / 427.4 MB, free: 13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.074e-06/0.3993, allocations: 0 / 427.4 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004267/0.4036, allocations: 1.69 MB / 429.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.4037, allocations: 196.9 kB / 429.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.4043, allocations: 457.9 kB / 429.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/0.4043, allocations: 45.73 kB / 429.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.4047, allocations: 420.7 kB / 430.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002416/0.405, allocations: 285.6 kB / 430.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002544/0.4052, allocations: 154.6 kB / 430.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4054, allocations: 378.8 kB / 431 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005436/0.406, allocations: 261.9 kB / 431.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007296/0.4067, allocations: 491.2 kB / 431.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.408, allocations: 0.7512 MB / 432.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.408, allocations: 0 / 432.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002011/0.41, allocations: 1.029 MB / 433.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.41, allocations: 8 kB / 433.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.41, allocations: 7.984 kB / 433.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008541/0.4109, allocations: 269.6 kB / 433.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.4115, allocations: 143.7 kB / 433.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005437/0.4169, allocations: 4.866 MB / 438.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008011/0.4178, allocations: 107.6 kB / 438.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.009e-05/0.4179, allocations: 35.98 kB / 438.9 MB, free: 0.8945 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.0005849/0.4185, allocations: 241.7 kB / 439.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.4186, allocations: 75.52 kB / 439.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/0.4217, allocations: 0.967 MB / 440.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.4217, allocations: 8 kB / 440.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.4218, allocations: 0 / 440.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4218, allocations: 3.984 kB / 440.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.4265, allocations: 1.902 MB / 442.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4265, allocations: 8.031 kB / 442.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007047/0.4272, allocations: 99.81 kB / 442.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.4284, allocations: 263.7 kB / 442.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.277e-05/0.4285, allocations: 19.98 kB / 442.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00669/0.4352, allocations: 4.809 MB / 447.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4352, allocations: 0 / 447.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.4377, allocations: 1.381 MB / 448.7 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.438, allocations: 212.4 kB / 448.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.4381, allocations: 16 kB / 448.9 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004467/0.4385, allocations: 51.97 kB / 448.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4387, allocations: 72.75 kB / 449 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/0.4388, allocations: 35.92 kB / 449 MB, free: 6.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003388/0.4391, allocations: 306.9 kB / 449.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4391, allocations: 0 / 449.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001023/0.4401, allocations: 307.3 kB / 449.6 MB, free: 5.727 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.002726/0.4429, allocations: 1.993 MB / 451.6 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.4448, allocations: 1.085 MB / 452.7 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4448, allocations: 4.062 kB / 452.7 MB, free: 2.582 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.4459, allocations: 0.743 MB / 453.5 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.4465, allocations: 110 kB / 453.6 MB, free: 1.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009224/0.4558, allocations: 6.46 MB / 460 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006227/0.4564, allocations: 0.9981 MB / 461 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003459/0.4568, allocations: 85.27 kB / 461.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003855/0.4572, allocations: 327.3 kB / 461.4 MB, free: 9.559 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4572, allocations: 0 / 461.4 MB, free: 9.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04633/0.5035, allocations: 19.13 MB / 480.6 MB, free: 6.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/14.94, allocations: 17.7 kB / 480.6 MB, free: 6.707 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