Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001582/0.001582, allocations: 120.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001754, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2894, allocations: 50.55 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007873/0.2973, allocations: 6.287 MB / 415.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004172/0.3015, allocations: 2.226 MB / 417.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006697/0.3022, allocations: 27.94 kB / 417.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.3042, allocations: 0.7422 MB / 418 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.3058, allocations: 0.6133 MB / 418.7 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.3069, allocations: 0.526 MB / 419.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.3081, allocations: 1.191 MB / 420.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.3092, allocations: 0.8354 MB / 421.2 MB, free: 5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005703/0.3098, allocations: 470.2 kB / 421.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006278/0.3105, allocations: 0.5406 MB / 422.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001506/0.3106, allocations: 112 kB / 422.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005735/0.3112, allocations: 287.8 kB / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.3114, allocations: 255.1 kB / 422.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004676/0.3119, allocations: 0.548 MB / 423.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001661/0.3135, allocations: 1.486 MB / 424.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.3136, allocations: 0 / 424.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3136, allocations: 4 kB / 424.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.3136, allocations: 0 / 424.9 MB, free: 1.309 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.002935/0.3165, allocations: 1.477 MB / 426.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3166, allocations: 12.03 kB / 426.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002147/0.3168, allocations: 158.4 kB / 426.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.3194, allocations: 415.9 kB / 426.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.3205, allocations: 0.5892 MB / 427.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.777e-05/0.3205, allocations: 74.38 kB / 427.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3207, allocations: 100.4 kB / 427.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.3225, allocations: 1.02 MB / 428.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.3226, allocations: 7.938 kB / 428.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.204e-05/0.3227, allocations: 44 kB / 428.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/0.3227, allocations: 24 kB / 428.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.3245, allocations: 0.855 MB / 429.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.3298, allocations: 3.614 MB / 433.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.3322, allocations: 1.896 MB / 435.2 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009414/0.3331, allocations: 463.4 kB / 435.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.3333, allocations: 182.8 kB / 435.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008792/0.3342, allocations: 488.9 kB / 436.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.595e-06/0.3342, allocations: 0 / 436.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004485/0.3387, allocations: 1.694 MB / 438 MB, free: 3.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.3388, allocations: 196.9 kB / 438.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005903/0.3394, allocations: 478 kB / 438.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.31e-05/0.3395, allocations: 45.7 kB / 438.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.3398, allocations: 428.7 kB / 439.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.3401, allocations: 297.5 kB / 439.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.3403, allocations: 154.6 kB / 439.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3405, allocations: 374.8 kB / 439.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/0.341, allocations: 273.9 kB / 440.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006882/0.3417, allocations: 479.2 kB / 440.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.343, allocations: 0.7551 MB / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.343, allocations: 3.938 kB / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001977/0.345, allocations: 1.037 MB / 442.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.345, allocations: 4 kB / 442.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.345, allocations: 8 kB / 442.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008818/0.3459, allocations: 276.6 kB / 442.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/0.3465, allocations: 143.8 kB / 442.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005515/0.352, allocations: 4.854 MB / 447.7 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007309/0.3528, allocations: 107.3 kB / 447.8 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.3528, allocations: 32 kB / 447.8 MB, free: 9.145 MB / 366.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.0004782/0.3533, allocations: 254.5 kB / 448.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3535, allocations: 75.61 kB / 448.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.3555, allocations: 0.971 MB / 449.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.3556, allocations: 8 kB / 449.1 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.3556, allocations: 4.188 kB / 449.1 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.3556, allocations: 7.969 kB / 449.1 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/0.3588, allocations: 1.917 MB / 451.1 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.3588, allocations: 0 / 451.1 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.3593, allocations: 99.88 kB / 451.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007796/0.36, allocations: 269 kB / 451.4 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.3601, allocations: 16 kB / 451.4 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005198/0.3653, allocations: 4.824 MB / 456.3 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3653, allocations: 0 / 456.3 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.3679, allocations: 1.377 MB / 457.6 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.3683, allocations: 216.4 kB / 457.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.3684, allocations: 20 kB / 457.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.3689, allocations: 43.95 kB / 457.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.3691, allocations: 68.84 kB / 458 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-05/0.3691, allocations: 28 kB / 458 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003987/0.3695, allocations: 330.9 kB / 458.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3695, allocations: 0 / 458.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001138/0.3707, allocations: 307.4 kB / 458.6 MB, free: 13.93 MB / 382.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.003024/0.3737, allocations: 1.988 MB / 460.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.3758, allocations: 1.092 MB / 461.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.3758, allocations: 4 kB / 461.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.377, allocations: 0.7482 MB / 462.5 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007366/0.3777, allocations: 125.9 kB / 462.6 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.3879, allocations: 6.572 MB / 469.2 MB, free: 3.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00059/0.3885, allocations: 1.002 MB / 470.2 MB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003779/0.3889, allocations: 81.48 kB / 470.2 MB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.3893, allocations: 327.3 kB / 470.6 MB, free: 1.617 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3893, allocations: 4 kB / 470.6 MB, free: 1.613 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05103/0.4403, allocations: 19.53 MB / 490.1 MB, free: 14.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/15.12, allocations: 15.22 kB / 490.1 MB, free: 14.32 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches