Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.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.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001511, allocations: 118.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.001662/0.001662, allocations: 198 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.515/1.515, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00256/0.00256, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.306, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse): time 0.006764/0.3128, allocations: 4.596 MB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.3157, allocations: 1.297 MB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003621/0.3161, allocations: 19.94 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.3165, allocations: 166.6 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009794/0.3175, allocations: 358 kB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.318, allocations: 215.6 kB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001836/0.3198, allocations: 1.627 MB / 417 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.3213, allocations: 1.106 MB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001061/0.3224, allocations: 0.6852 MB / 418.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.3236, allocations: 0.86 MB / 419.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002495/0.3239, allocations: 180 kB / 419.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.3242, allocations: 184 kB / 420 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004647/0.3247, allocations: 482.7 kB / 420.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009403/0.3256, allocations: 0.7971 MB / 421.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.3282, allocations: 2.28 MB / 423.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3282, allocations: 0 / 423.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3283, allocations: 0 / 423.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.3283, allocations: 0 / 423.6 MB, free: 2.617 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.003765/0.3321, allocations: 1.832 MB / 425.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3321, allocations: 11.97 kB / 425.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.3323, allocations: 168.8 kB / 425.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007453/0.3331, allocations: 219.9 kB / 425.8 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.3349, allocations: 1.037 MB / 426.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.302e-05/0.335, allocations: 74.44 kB / 426.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.3352, allocations: 103.9 kB / 427 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.3382, allocations: 1.557 MB / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/0.3383, allocations: 0 / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.3384, allocations: 43.98 kB / 428.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-05/0.3385, allocations: 46.03 kB / 428.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003625/0.3422, allocations: 1.437 MB / 430.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01088/0.3531, allocations: 4.911 MB / 435 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.3556, allocations: 1.446 MB / 436.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.3574, allocations: 0.7427 MB / 437.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-05/0.3575, allocations: 8.562 kB / 437.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.359, allocations: 0.6122 MB / 437.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.866e-06/0.359, allocations: 0 / 437.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.008417/0.3674, allocations: 2.451 MB / 440.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.3676, allocations: 85.77 kB / 440.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.3693, allocations: 0.9581 MB / 441.3 MB, free: 348 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/0.3694, allocations: 41.7 kB / 441.4 MB, free: 300 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005907/0.37, allocations: 0.5514 MB / 441.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.3703, allocations: 242 kB / 442.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.3705, allocations: 130.6 kB / 442.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3707, allocations: 337.9 kB / 442.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000722/0.3714, allocations: 413.7 kB / 443 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009054/0.3723, allocations: 0.5446 MB / 443.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/0.3739, allocations: 0.9581 MB / 444.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3739, allocations: 0 / 444.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002526/0.3764, allocations: 1.288 MB / 445.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.3765, allocations: 10.97 kB / 445.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.3765, allocations: 7.938 kB / 445.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.3778, allocations: 407.5 kB / 446.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007385/0.3786, allocations: 107.9 kB / 446.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008435/0.387, allocations: 4.511 MB / 450.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000962/0.388, allocations: 87.58 kB / 450.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.925e-05/0.3881, allocations: 23.98 kB / 450.9 MB, free: 6.434 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 15 (meanVoltage.y_last,$PRE.meanVoltage.y_last,meanCurrent.y_last,$PRE.meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquareVoltage.mean.y_last,$PRE.rootMeanSquareVoltage.mean.y_last,rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(6,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.3893, allocations: 0.4952 MB / 451.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.3896, allocations: 103.4 kB / 451.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003102/0.3899, allocations: 120.8 kB / 451.7 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.3899, allocations: 8 kB / 451.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3899, allocations: 0 / 451.7 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.3899, allocations: 3.984 kB / 451.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006108/0.3961, allocations: 2.598 MB / 454.3 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3961, allocations: 0 / 454.3 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.3967, allocations: 87.88 kB / 454.4 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.398, allocations: 396.5 kB / 454.7 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.3981, allocations: 16 kB / 454.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007827/0.4059, allocations: 4.476 MB / 459.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4059, allocations: 0 / 459.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.4092, allocations: 1.968 MB / 461.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005283/0.4098, allocations: 292.3 kB / 461.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.4099, allocations: 15.94 kB / 461.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004369/0.4104, allocations: 39.95 kB / 461.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.4106, allocations: 80.53 kB / 461.6 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.898e-05/0.4106, allocations: 19.94 kB / 461.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001017/0.4117, allocations: 0.6903 MB / 462.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4117, allocations: 4 kB / 462.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001068/0.4127, allocations: 355.2 kB / 462.7 MB, free: 10.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(6,22)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003535/0.4163, allocations: 2.531 MB / 465.2 MB, free: 7.871 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.4189, allocations: 1.284 MB / 466.5 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4189, allocations: 192 / 466.5 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.4202, allocations: 0.8102 MB / 467.3 MB, free: 5.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.4215, allocations: 262.8 kB / 467.6 MB, free: 5.496 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.4394, allocations: 10.91 MB / 478.5 MB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.4408, allocations: 1.396 MB / 479.9 MB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005473/0.4413, allocations: 175.4 kB / 480 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/0.4419, allocations: 419.3 kB / 480.4 MB, free: 8.34 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.442, allocations: 4 kB / 480.5 MB, free: 8.336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0773/0.5193, allocations: 28.93 MB / 0.4974 GB, free: 11.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.19, allocations: 12.19 kB / 0.4975 GB, free: 11.77 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/PowerConverters/Examples/ACDC/RectifierCenterTap2mPulse/DiodeCenterTap2mPulse/DiodeCenterTap2mPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches