Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_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.001266/0.001266, allocations: 112.5 kB / 17.07 MB, free: 5.973 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.00123/0.00123, allocations: 197.3 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1872/0.1872, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 67.89 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3364, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007081/0.3435, allocations: 6.333 MB / 0.5098 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.3458, allocations: 1.447 MB / 0.5112 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003023/0.3461, allocations: 26.47 kB / 0.5113 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004697/0.3466, allocations: 147.1 kB / 0.5114 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007365/0.3474, allocations: 422.3 kB / 0.5118 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.3478, allocations: 209.4 kB / 0.512 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000974/0.3488, allocations: 1.124 MB / 0.5131 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004088/0.3492, allocations: 353.3 kB / 0.5134 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005844/0.3498, allocations: 480.9 kB / 0.5139 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007155/0.3505, allocations: 0.5324 MB / 0.5144 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.3507, allocations: 69.5 kB / 0.5145 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.3508, allocations: 66.53 kB / 0.5145 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002936/0.3511, allocations: 307.1 kB / 0.5148 GB, free: 432 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.3515, allocations: 376.9 kB / 0.5152 GB, free: 208 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009078/0.3524, allocations: 0.8819 MB / 0.5161 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3524, allocations: 1.125 kB / 0.5161 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3524, allocations: 0 / 0.5161 GB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.3524, allocations: 0.5625 kB / 0.5161 GB, free: 15.86 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002219/0.3546, allocations: 1.043 MB / 0.5171 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3547, allocations: 14.2 kB / 0.5171 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/0.3549, allocations: 100.7 kB / 0.5172 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.355, allocations: 82 kB / 0.5173 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.3562, allocations: 0.5861 MB / 0.5178 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3564, allocations: 126.9 kB / 0.518 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3565, allocations: 55.86 kB / 0.518 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.3581, allocations: 0.7875 MB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.3581, allocations: 1.094 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.3582, allocations: 20.5 kB / 0.5188 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.3583, allocations: 34.67 kB / 0.5188 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.3597, allocations: 0.6921 MB / 0.5195 GB, free: 13.96 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004419/0.3641, allocations: 2.702 MB / 0.5221 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.366, allocations: 0.886 MB / 0.523 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006095/0.3666, allocations: 322.8 kB / 0.5233 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.3666, allocations: 9.734 kB / 0.5233 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3667, allocations: 41 kB / 0.5234 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.905e-06/0.3667, allocations: 0 / 0.5234 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004216/0.3709, allocations: 1.946 MB / 0.5253 GB, free: 10.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.371, allocations: 86.45 kB / 0.5254 GB, free: 10.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006082/0.3716, allocations: 431.3 kB / 0.5258 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.3717, allocations: 32.3 kB / 0.5258 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.3719, allocations: 318.8 kB / 0.5261 GB, free: 10 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.3721, allocations: 151 kB / 0.5262 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.3722, allocations: 85.53 kB / 0.5263 GB, free: 9.836 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3724, allocations: 359.2 kB / 0.5267 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.373, allocations: 242.8 kB / 0.5269 GB, free: 9.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006123/0.3736, allocations: 346.8 kB / 0.5272 GB, free: 9.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.3747, allocations: 0.5761 MB / 0.5278 GB, free: 8.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3747, allocations: 1.312 kB / 0.5278 GB, free: 8.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001515/0.3762, allocations: 0.7938 MB / 0.5286 GB, free: 8.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3763, allocations: 5.5 kB / 0.5286 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3763, allocations: 3.656 kB / 0.5286 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.3766, allocations: 74.36 kB / 0.5286 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.3781, allocations: 292.6 kB / 0.5289 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006968/0.385, allocations: 6.504 MB / 0.5353 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.3857, allocations: 34.53 kB / 0.5353 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.3857, allocations: 29.55 kB / 0.5353 GB, free: 2.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0004272/0.3862, allocations: 238.7 kB / 0.5356 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3863, allocations: 49.48 kB / 0.5356 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.3878, allocations: 0.7384 MB / 0.5363 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3878, allocations: 4.062 kB / 0.5363 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3878, allocations: 1.469 kB / 0.5363 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3878, allocations: 3.984 kB / 0.5363 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3907, allocations: 1.496 MB / 0.5378 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3907, allocations: 0.7812 kB / 0.5378 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.3924, allocations: 296.9 kB / 0.5381 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000279/0.3926, allocations: 98.17 kB / 0.5382 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.3927, allocations: 8.5 kB / 0.5382 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.3955, allocations: 3.164 MB / 0.5413 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3955, allocations: 3.938 kB / 0.5413 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.3977, allocations: 1.123 MB / 0.5424 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.3979, allocations: 127.1 kB / 0.5425 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.809e-05/0.398, allocations: 8.562 kB / 0.5425 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.3985, allocations: 27.62 kB / 0.5425 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.3987, allocations: 48.53 kB / 0.5426 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.3987, allocations: 11.97 kB / 0.5426 GB, free: 12.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004328/0.3992, allocations: 298.3 kB / 0.5429 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3992, allocations: 0 / 0.5429 GB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008652/0.4, allocations: 136.9 kB / 0.543 GB, free: 12.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (39): * Single equations (assignments): 36 * 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.002893/0.4029, allocations: 1.665 MB / 0.5446 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003187/0.4061, allocations: 1.004 MB / 0.5456 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.4062, allocations: 3.938 kB / 0.5456 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002098/0.4083, allocations: 0.7221 MB / 0.5463 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.4094, allocations: 147.6 kB / 0.5465 GB, free: 9.734 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009226/0.4186, allocations: 5.507 MB / 0.5518 GB, free: 5.324 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006709/0.4193, allocations: 0.9448 MB / 0.5528 GB, free: 4.355 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003621/0.4197, allocations: 100.5 kB / 0.5529 GB, free: 4.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.42, allocations: 203.4 kB / 0.5531 GB, free: 4.062 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.42, allocations: 4 kB / 0.5531 GB, free: 4.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/0.4675, allocations: 12.87 MB / 0.5656 GB, free: 7.414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.73, allocations: 2.75 kB / 0.5656 GB, free: 7.414 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches