Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_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.001131/0.001131, allocations: 108.9 kB / 17.06 MB, free: 5.816 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.001215/0.001215, allocations: 200 kB / 18.01 MB, free: 4.941 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 67.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3269, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007821/0.3348, allocations: 6.257 MB / 0.5097 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.3376, allocations: 1.413 MB / 0.5111 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000537/0.3381, allocations: 26.25 kB / 0.5111 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004777/0.3386, allocations: 136.6 kB / 0.5113 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009383/0.3396, allocations: 423.3 kB / 0.5117 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.3401, allocations: 192.9 kB / 0.5119 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.3412, allocations: 1.084 MB / 0.5129 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004134/0.3417, allocations: 358.8 kB / 0.5133 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006362/0.3423, allocations: 469.5 kB / 0.5137 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007895/0.3431, allocations: 0.5298 MB / 0.5142 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3432, allocations: 65.44 kB / 0.5143 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.3434, allocations: 65.16 kB / 0.5143 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003917/0.3438, allocations: 304.8 kB / 0.5146 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004138/0.3442, allocations: 369 kB / 0.515 GB, free: 372 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.3453, allocations: 0.845 MB / 0.5158 GB, free: 48 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3453, allocations: 0 / 0.5158 GB, free: 48 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3453, allocations: 1.219 kB / 0.5158 GB, free: 48 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3454, allocations: 0 / 0.5158 GB, free: 48 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002424/0.3478, allocations: 1.026 MB / 0.5168 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3479, allocations: 14.48 kB / 0.5168 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.348, allocations: 99.16 kB / 0.5169 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.3482, allocations: 76.62 kB / 0.517 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.3493, allocations: 0.5778 MB / 0.5176 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.3495, allocations: 125.2 kB / 0.5177 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.3496, allocations: 55.98 kB / 0.5177 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3512, allocations: 0.7723 MB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3512, allocations: 1.188 kB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.3513, allocations: 24.53 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.3514, allocations: 36.02 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.3529, allocations: 0.7201 MB / 0.5193 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.3568, allocations: 2.603 MB / 0.5218 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.3585, allocations: 0.8005 MB / 0.5226 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000838/0.3594, allocations: 403.5 kB / 0.523 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.3594, allocations: 9.922 kB / 0.523 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.3595, allocations: 42.3 kB / 0.523 GB, free: 12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.3595, allocations: 0 / 0.523 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.00518/0.3647, allocations: 2.153 MB / 0.5251 GB, free: 10.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3648, allocations: 84.14 kB / 0.5252 GB, free: 10.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006894/0.3655, allocations: 405 kB / 0.5256 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.31e-05/0.3656, allocations: 33.05 kB / 0.5256 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.3659, allocations: 291.7 kB / 0.5259 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.3661, allocations: 183.9 kB / 0.5261 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.3663, allocations: 99.41 kB / 0.5262 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3665, allocations: 359.5 kB / 0.5265 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000566/0.3671, allocations: 280.6 kB / 0.5268 GB, free: 9.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006226/0.3677, allocations: 381.1 kB / 0.5271 GB, free: 9.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.369, allocations: 0.649 MB / 0.5278 GB, free: 9.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.369, allocations: 1.188 kB / 0.5278 GB, free: 9.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001856/0.3709, allocations: 0.8771 MB / 0.5286 GB, free: 8.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3709, allocations: 6.5 kB / 0.5286 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3709, allocations: 7.594 kB / 0.5286 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003123/0.3712, allocations: 74.78 kB / 0.5287 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.3728, allocations: 305 kB / 0.529 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006356/0.3792, allocations: 6.539 MB / 0.5354 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.3798, allocations: 39.48 kB / 0.5354 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.3798, allocations: 22.73 kB / 0.5354 GB, free: 2.418 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003799/0.3802, allocations: 243.4 kB / 0.5357 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.982e-05/0.3803, allocations: 51.45 kB / 0.5357 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.3818, allocations: 0.8267 MB / 0.5365 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3819, allocations: 5.344 kB / 0.5365 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3819, allocations: 1.25 kB / 0.5365 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.3819, allocations: 7.922 kB / 0.5365 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.3847, allocations: 1.676 MB / 0.5382 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.299e-06/0.3847, allocations: 1.219 kB / 0.5382 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/0.3864, allocations: 330.9 kB / 0.5385 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/0.3867, allocations: 88 kB / 0.5386 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/0.3867, allocations: 8.938 kB / 0.5386 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/0.3891, allocations: 3.166 MB / 0.5417 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3891, allocations: 2.25 kB / 0.5417 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.3914, allocations: 1.328 MB / 0.543 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.3916, allocations: 124.5 kB / 0.5431 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.032e-05/0.3917, allocations: 17.53 kB / 0.5431 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.3921, allocations: 39.23 kB / 0.5432 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.3922, allocations: 47.53 kB / 0.5432 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.3922, allocations: 11.12 kB / 0.5432 GB, free: 12.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003293/0.3926, allocations: 290.3 kB / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3926, allocations: 0 / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007111/0.3933, allocations: 146.8 kB / 0.5436 GB, free: 11.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002436/0.3957, allocations: 1.878 MB / 0.5455 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.3985, allocations: 1.079 MB / 0.5465 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3985, allocations: 5.188 kB / 0.5465 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/0.4004, allocations: 0.8083 MB / 0.5473 GB, free: 9.434 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000795/0.4012, allocations: 142.2 kB / 0.5474 GB, free: 9.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008583/0.4098, allocations: 5.876 MB / 0.5532 GB, free: 3.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.4104, allocations: 0.9447 MB / 0.5541 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003921/0.4108, allocations: 120.7 kB / 0.5542 GB, free: 2.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.4111, allocations: 207.4 kB / 0.5544 GB, free: 2.633 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4111, allocations: 4 kB / 0.5544 GB, free: 2.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.4495, allocations: 13 MB / 0.5671 GB, free: 5.844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.05, allocations: 16.39 kB / 0.5671 GB, free: 5.832 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches