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.001478/0.001478, allocations: 114 kB / 17.07 MB, free: 5.969 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.001717/0.001717, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1888/0.1888, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.91 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3274, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.006646/0.3341, allocations: 6.249 MB / 0.5097 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.3363, allocations: 1.429 MB / 0.5111 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.3366, allocations: 22.03 kB / 0.5111 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004403/0.3371, allocations: 139.7 kB / 0.5113 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00074/0.3378, allocations: 419.1 kB / 0.5117 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.3382, allocations: 192.9 kB / 0.5119 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.3395, allocations: 1.084 MB / 0.5129 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000586/0.3401, allocations: 356.8 kB / 0.5133 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009575/0.3411, allocations: 469.3 kB / 0.5137 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.3421, allocations: 0.5253 MB / 0.5142 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.3423, allocations: 64.78 kB / 0.5143 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.3425, allocations: 69.16 kB / 0.5143 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003515/0.3428, allocations: 309.4 kB / 0.5146 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.3432, allocations: 365.3 kB / 0.515 GB, free: 344 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009757/0.3442, allocations: 0.844 MB / 0.5158 GB, free: 20 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3442, allocations: 1.094 kB / 0.5158 GB, free: 20 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3442, allocations: 0 / 0.5158 GB, free: 20 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.3442, allocations: 0 / 0.5158 GB, free: 20 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.002233/0.3465, allocations: 1.032 MB / 0.5168 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3465, allocations: 12.95 kB / 0.5168 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.3467, allocations: 99.88 kB / 0.5169 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.3469, allocations: 77.05 kB / 0.517 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.3482, allocations: 0.5771 MB / 0.5176 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.3483, allocations: 117 kB / 0.5177 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.3485, allocations: 56.45 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3499, allocations: 0.7718 MB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.35, allocations: 5 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.335e-05/0.35, allocations: 22.22 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.3501, allocations: 38.77 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.3517, allocations: 0.7201 MB / 0.5192 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004112/0.3558, allocations: 2.611 MB / 0.5218 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.3575, allocations: 0.7972 MB / 0.5226 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007471/0.3583, allocations: 395.5 kB / 0.523 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.3583, allocations: 9.516 kB / 0.523 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.3584, allocations: 41.92 kB / 0.523 GB, free: 11.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.3584, allocations: 3.938 kB / 0.523 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004472/0.3629, allocations: 2.157 MB / 0.5251 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.3629, allocations: 83.75 kB / 0.5252 GB, free: 10.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005004/0.3634, allocations: 405.8 kB / 0.5256 GB, free: 10.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.3635, allocations: 40.36 kB / 0.5256 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.3637, allocations: 291.1 kB / 0.5259 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.3639, allocations: 187.7 kB / 0.5261 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.3641, allocations: 101.3 kB / 0.5262 GB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3642, allocations: 358.9 kB / 0.5265 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000572/0.3648, allocations: 275.9 kB / 0.5268 GB, free: 9.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006416/0.3654, allocations: 381.2 kB / 0.5271 GB, free: 9.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.3666, allocations: 0.6496 MB / 0.5278 GB, free: 9.062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3667, allocations: 1.344 kB / 0.5278 GB, free: 9.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001627/0.3683, allocations: 0.8716 MB / 0.5286 GB, free: 8.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3683, allocations: 7.453 kB / 0.5286 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3683, allocations: 3.688 kB / 0.5286 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000265/0.3686, allocations: 76.09 kB / 0.5287 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.3702, allocations: 307.3 kB / 0.529 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.3762, allocations: 6.538 MB / 0.5354 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.3768, allocations: 40.48 kB / 0.5354 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.3769, allocations: 18.88 kB / 0.5354 GB, free: 2.414 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.000393/0.3773, allocations: 241 kB / 0.5357 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.3774, allocations: 55.3 kB / 0.5357 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.379, allocations: 0.8226 MB / 0.5365 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.379, allocations: 13.48 kB / 0.5365 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.379, allocations: 1.281 kB / 0.5365 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.379, allocations: 1.531 kB / 0.5365 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/0.382, allocations: 1.671 MB / 0.5382 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.382, allocations: 6.094 kB / 0.5382 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/0.3838, allocations: 322.9 kB / 0.5385 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002886/0.3841, allocations: 94.91 kB / 0.5386 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.3842, allocations: 13.69 kB / 0.5386 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.3865, allocations: 3.162 MB / 0.5417 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3865, allocations: 6.062 kB / 0.5417 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.3888, allocations: 1.32 MB / 0.543 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.389, allocations: 128.6 kB / 0.5431 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.343e-05/0.3891, allocations: 13.72 kB / 0.5431 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004099/0.3895, allocations: 43.11 kB / 0.5432 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3897, allocations: 48.09 kB / 0.5432 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-05/0.3897, allocations: 18.89 kB / 0.5432 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003843/0.3901, allocations: 278 kB / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3901, allocations: 0 / 0.5435 GB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007884/0.3909, allocations: 151.6 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.002438/0.3934, allocations: 1.876 MB / 0.5455 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002793/0.3962, allocations: 1.082 MB / 0.5465 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3962, allocations: 0 / 0.5465 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002157/0.3984, allocations: 0.813 MB / 0.5473 GB, free: 9.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009601/0.3994, allocations: 138.1 kB / 0.5474 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009565/0.4089, allocations: 5.875 MB / 0.5532 GB, free: 3.918 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006455/0.4096, allocations: 0.9408 MB / 0.5541 GB, free: 2.949 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005055/0.4102, allocations: 128.7 kB / 0.5542 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/0.4105, allocations: 199.4 kB / 0.5544 GB, free: 2.625 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4105, allocations: 3.938 kB / 0.5544 GB, free: 2.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04326/0.4538, allocations: 13 MB / 0.5671 GB, free: 5.828 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.29, allocations: 4.047 kB / 0.5671 GB, free: 5.828 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