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.001151/0.001151, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, 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.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.304, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse): time 0.006291/0.3103, allocations: 4.596 MB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002915/0.3132, allocations: 1.305 MB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007652/0.314, allocations: 23.88 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000627/0.3147, allocations: 178.6 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001419/0.3161, allocations: 362 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006309/0.3168, allocations: 215.6 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.3187, allocations: 1.623 MB / 417.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001262/0.32, allocations: 1.106 MB / 418.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009647/0.321, allocations: 0.6891 MB / 418.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.3223, allocations: 0.8562 MB / 419.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002379/0.3225, allocations: 180 kB / 419.9 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003383/0.3229, allocations: 184 kB / 420.1 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004253/0.3233, allocations: 478.7 kB / 420.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008846/0.3242, allocations: 0.8049 MB / 421.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.3266, allocations: 2.28 MB / 423.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.3266, allocations: 4 kB / 423.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3266, allocations: 0 / 423.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.33e-05/0.3267, allocations: 0 / 423.6 MB, free: 2.605 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.003859/0.3305, allocations: 1.832 MB / 425.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.3306, allocations: 8.031 kB / 425.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000216/0.3308, allocations: 168.8 kB / 425.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007609/0.3316, allocations: 215.9 kB / 425.8 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.3333, allocations: 1.04 MB / 426.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.3334, allocations: 78.44 kB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.3336, allocations: 107.9 kB / 427.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.3362, allocations: 1.553 MB / 428.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.3362, allocations: 0 / 428.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.3363, allocations: 44 kB / 428.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.102e-05/0.3364, allocations: 42.03 kB / 428.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.3387, allocations: 1.437 MB / 430.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007036/0.3457, allocations: 4.903 MB / 435 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.3473, allocations: 1.454 MB / 436.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.3485, allocations: 0.7389 MB / 437.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.3485, allocations: 8.562 kB / 437.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009824/0.3495, allocations: 0.6083 MB / 437.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.675e-06/0.3495, allocations: 0 / 437.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005515/0.3551, allocations: 2.447 MB / 440.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.3551, allocations: 89.77 kB / 440.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.3563, allocations: 0.962 MB / 441.3 MB, free: 344 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.659e-05/0.3564, allocations: 41.7 kB / 441.4 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.3568, allocations: 0.5476 MB / 441.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.357, allocations: 242 kB / 442.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000209/0.3572, allocations: 130.6 kB / 442.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3573, allocations: 334 kB / 442.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006351/0.3579, allocations: 413.7 kB / 443 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007158/0.3587, allocations: 0.5563 MB / 443.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.36, allocations: 0.9463 MB / 444.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.36, allocations: 8 kB / 444.5 MB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001943/0.3619, allocations: 1.296 MB / 445.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.362, allocations: 4.469 kB / 445.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.362, allocations: 11.94 kB / 445.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008378/0.3628, allocations: 399.2 kB / 446.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.3633, allocations: 115.8 kB / 446.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.3684, allocations: 4.503 MB / 450.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.3689, allocations: 87.52 kB / 450.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.369, allocations: 24 kB / 451 MB, free: 6.43 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.0006714/0.3697, allocations: 0.4991 MB / 451.5 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.3698, allocations: 99.39 kB / 451.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.37, allocations: 120.8 kB / 451.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.37, allocations: 8 kB / 451.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.37, allocations: 128 / 451.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.37, allocations: 7.922 kB / 451.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003697/0.3737, allocations: 2.598 MB / 454.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3737, allocations: 0 / 454.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004041/0.3741, allocations: 87.88 kB / 454.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007732/0.3749, allocations: 396.5 kB / 454.8 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-05/0.375, allocations: 23.92 kB / 454.8 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/0.3799, allocations: 4.476 MB / 459.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.38, allocations: 0 / 459.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.383, allocations: 1.96 MB / 461.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/0.3836, allocations: 292.3 kB / 461.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.3837, allocations: 12 kB / 461.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.3841, allocations: 43.95 kB / 461.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.3844, allocations: 80.42 kB / 461.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.3844, allocations: 28.11 kB / 461.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009573/0.3854, allocations: 0.6903 MB / 462.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3854, allocations: 0 / 462.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000995/0.3864, allocations: 351.2 kB / 462.7 MB, free: 10.43 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.003136/0.3895, allocations: 2.539 MB / 465.2 MB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.3918, allocations: 1.288 MB / 466.5 MB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.3918, allocations: 4 kB / 466.5 MB, free: 6.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.3929, allocations: 0.8104 MB / 467.3 MB, free: 5.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.394, allocations: 243.2 kB / 467.6 MB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/0.4099, allocations: 10.91 MB / 478.5 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009809/0.4109, allocations: 1.396 MB / 479.9 MB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004854/0.4114, allocations: 175.4 kB / 480.1 MB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.412, allocations: 423.3 kB / 480.5 MB, free: 8.328 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.412, allocations: 0 / 480.5 MB, free: 8.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06464/0.4766, allocations: 28.94 MB / 0.4975 GB, free: 11.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.18, allocations: 8.125 kB / 0.4975 GB, free: 11.76 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.0.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