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.001314/0.001314, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 56.14 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2754, allocations: 50.55 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007777/0.2832, allocations: 6.283 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004256/0.2875, allocations: 2.234 MB / 417.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006422/0.2881, allocations: 19.94 kB / 417.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001876/0.2901, allocations: 0.75 MB / 418.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.2915, allocations: 0.5978 MB / 418.6 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.2926, allocations: 0.526 MB / 419.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.2939, allocations: 1.187 MB / 420.4 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.2951, allocations: 0.8432 MB / 421.2 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.2957, allocations: 474.2 kB / 421.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006631/0.2964, allocations: 0.5406 MB / 422.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.2966, allocations: 116 kB / 422.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000573/0.2972, allocations: 283.8 kB / 422.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.2974, allocations: 259.1 kB / 422.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005144/0.2979, allocations: 0.5403 MB / 423.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001792/0.2997, allocations: 1.494 MB / 424.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2997, allocations: 0 / 424.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2998, allocations: 0 / 424.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.785e-05/0.2998, allocations: 0 / 424.9 MB, free: 1.348 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.003169/0.303, allocations: 1.481 MB / 426.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.303, allocations: 8.031 kB / 426.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002505/0.3033, allocations: 162.4 kB / 426.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002477/0.3058, allocations: 407.9 kB / 426.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009934/0.3068, allocations: 0.5893 MB / 427.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-05/0.3068, allocations: 78.38 kB / 427.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.307, allocations: 104.4 kB / 427.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.3088, allocations: 1.02 MB / 428.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/0.3089, allocations: 4 kB / 428.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.49e-05/0.309, allocations: 40 kB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.309, allocations: 24 kB / 428.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.3106, allocations: 0.8589 MB / 429.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005671/0.3163, allocations: 3.61 MB / 433.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.3189, allocations: 1.892 MB / 435.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009355/0.3199, allocations: 471.4 kB / 435.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001935/0.3201, allocations: 174.9 kB / 435.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009194/0.321, allocations: 496.8 kB / 436.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.795e-06/0.321, allocations: 0 / 436.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004743/0.3258, allocations: 1.69 MB / 438 MB, free: 3.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.326, allocations: 196.9 kB / 438.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006688/0.3266, allocations: 478 kB / 438.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.139e-05/0.3267, allocations: 49.73 kB / 438.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.3271, allocations: 428.7 kB / 439.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.3274, allocations: 289.5 kB / 439.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.3276, allocations: 158.6 kB / 439.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.3278, allocations: 374.8 kB / 439.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.3284, allocations: 265.9 kB / 440.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007775/0.3292, allocations: 491.2 kB / 440.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.3305, allocations: 0.7473 MB / 441.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3305, allocations: 7.938 kB / 441.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002047/0.3326, allocations: 1.033 MB / 442.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3326, allocations: 14.75 kB / 442.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3326, allocations: 4 kB / 442.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000876/0.3335, allocations: 272.9 kB / 442.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005504/0.3341, allocations: 143.7 kB / 442.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005962/0.34, allocations: 4.864 MB / 447.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.3407, allocations: 103.4 kB / 447.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-05/0.3408, allocations: 32 kB / 447.8 MB, free: 9.184 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.0004601/0.3413, allocations: 247.7 kB / 448.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.3414, allocations: 71.52 kB / 448.1 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.3435, allocations: 0.9749 MB / 449.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3435, allocations: 8 kB / 449.1 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.3435, allocations: 4.188 kB / 449.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.349e-05/0.3435, allocations: 7.969 kB / 449.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.3469, allocations: 1.917 MB / 451.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3469, allocations: 4.031 kB / 451.1 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.3473, allocations: 95.88 kB / 451.2 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007688/0.3481, allocations: 265.4 kB / 451.4 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.3482, allocations: 20 kB / 451.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005584/0.3538, allocations: 4.82 MB / 456.3 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3538, allocations: 0 / 456.3 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.3565, allocations: 1.377 MB / 457.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/0.3569, allocations: 220.4 kB / 457.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.381e-05/0.357, allocations: 16 kB / 457.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.3575, allocations: 47.95 kB / 457.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3577, allocations: 76.78 kB / 458 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.3577, allocations: 24 kB / 458 MB, free: 14.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004592/0.3582, allocations: 326.9 kB / 458.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3582, allocations: 0 / 458.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001166/0.3594, allocations: 311.4 kB / 458.6 MB, free: 13.96 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.003129/0.3625, allocations: 1.992 MB / 460.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.3646, allocations: 1.081 MB / 461.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.3647, allocations: 4.188 kB / 461.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.366, allocations: 0.743 MB / 462.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007564/0.3667, allocations: 129.6 kB / 462.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.3775, allocations: 6.583 MB / 469.2 MB, free: 3.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007875/0.3784, allocations: 0.9982 MB / 470.2 MB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.3788, allocations: 81.48 kB / 470.2 MB, free: 1.984 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.3793, allocations: 331.3 kB / 470.6 MB, free: 1.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3793, allocations: 0 / 470.6 MB, free: 1.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06078/0.4401, allocations: 19.53 MB / 490.1 MB, free: 14.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/15.7, allocations: 23.28 kB / 490.1 MB, free: 14.36 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.1.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