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.001194/0.001194, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001235/0.001235, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.302/1.302, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1773/0.1773, allocations: 38.06 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3045, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006708/0.3112, allocations: 6.341 MB / 0.5098 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.3137, allocations: 1.45 MB / 0.5112 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004851/0.3142, allocations: 21.97 kB / 0.5113 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005609/0.3148, allocations: 147.8 kB / 0.5114 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.3159, allocations: 432.8 kB / 0.5118 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.3164, allocations: 210 kB / 0.512 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.3178, allocations: 1.121 MB / 0.5131 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.3182, allocations: 360.6 kB / 0.5135 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000829/0.3191, allocations: 479.7 kB / 0.5139 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009618/0.3201, allocations: 0.5322 MB / 0.5144 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.3202, allocations: 73.78 kB / 0.5145 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002596/0.3205, allocations: 66.41 kB / 0.5146 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003741/0.3209, allocations: 316.3 kB / 0.5149 GB, free: 460 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000557/0.3214, allocations: 372.3 kB / 0.5152 GB, free: 240 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.3226, allocations: 0.8752 MB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3226, allocations: 0 / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3226, allocations: 0.6562 kB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.102e-05/0.3226, allocations: 0.5312 kB / 0.5161 GB, free: 15.9 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.002795/0.3254, allocations: 1.045 MB / 0.5171 GB, free: 15.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3255, allocations: 13.14 kB / 0.5171 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.3257, allocations: 101.6 kB / 0.5172 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.3259, allocations: 78.28 kB / 0.5173 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.3272, allocations: 0.5891 MB / 0.5179 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.3274, allocations: 127.2 kB / 0.518 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.3275, allocations: 51.66 kB / 0.518 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.329, allocations: 0.7929 MB / 0.5188 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.3291, allocations: 0.7812 kB / 0.5188 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.3291, allocations: 21.44 kB / 0.5188 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.3293, allocations: 33.19 kB / 0.5189 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3307, allocations: 0.6919 MB / 0.5195 GB, free: 14 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.004546/0.3352, allocations: 2.706 MB / 0.5222 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.3371, allocations: 0.8793 MB / 0.523 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006701/0.3378, allocations: 327.3 kB / 0.5233 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.3378, allocations: 3.656 kB / 0.5233 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.3379, allocations: 42.5 kB / 0.5234 GB, free: 11.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 3.317e-06/0.3379, allocations: 0 / 0.5234 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004261/0.3422, allocations: 1.942 MB / 0.5253 GB, free: 10.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.3423, allocations: 85.23 kB / 0.5254 GB, free: 10.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000607/0.3429, allocations: 430.5 kB / 0.5258 GB, free: 10.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3429, allocations: 37.16 kB / 0.5258 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.3432, allocations: 322.6 kB / 0.5261 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.3434, allocations: 147.3 kB / 0.5263 GB, free: 9.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.3436, allocations: 88.62 kB / 0.5263 GB, free: 9.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002254/0.3438, allocations: 363.8 kB / 0.5267 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005716/0.3444, allocations: 235.3 kB / 0.5269 GB, free: 9.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.345, allocations: 350 kB / 0.5272 GB, free: 9.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.346, allocations: 0.5728 MB / 0.5278 GB, free: 8.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.346, allocations: 1.156 kB / 0.5278 GB, free: 8.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001536/0.3476, allocations: 0.7948 MB / 0.5286 GB, free: 8.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.3476, allocations: 3.938 kB / 0.5286 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3476, allocations: 4.484 kB / 0.5286 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002639/0.3479, allocations: 73.69 kB / 0.5287 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.3494, allocations: 293.1 kB / 0.5289 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006004/0.3555, allocations: 6.503 MB / 0.5353 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000538/0.356, allocations: 41.61 kB / 0.5353 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.3561, allocations: 26.47 kB / 0.5354 GB, free: 2.273 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.0004188/0.3565, allocations: 234.9 kB / 0.5356 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.485e-05/0.3566, allocations: 50.39 kB / 0.5356 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.358, allocations: 0.7375 MB / 0.5364 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.358, allocations: 4.719 kB / 0.5364 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.358, allocations: 1.125 kB / 0.5364 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.358, allocations: 5.031 kB / 0.5364 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3606, allocations: 1.491 MB / 0.5378 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3607, allocations: 1.094 kB / 0.5378 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.3623, allocations: 301.3 kB / 0.5381 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002652/0.3626, allocations: 93.36 kB / 0.5382 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.3626, allocations: 12.16 kB / 0.5382 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.3648, allocations: 3.168 MB / 0.5413 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3648, allocations: 6.094 kB / 0.5413 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.3667, allocations: 1.122 MB / 0.5424 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.3668, allocations: 118.8 kB / 0.5425 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.572e-05/0.3669, allocations: 12.06 kB / 0.5425 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.3672, allocations: 35.86 kB / 0.5426 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3674, allocations: 36.08 kB / 0.5426 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.3674, allocations: 17.27 kB / 0.5426 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003303/0.3677, allocations: 293.5 kB / 0.5429 GB, free: 12.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3677, allocations: 0 / 0.5429 GB, free: 12.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007182/0.3685, allocations: 137.4 kB / 0.543 GB, free: 12.09 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.002094/0.3706, allocations: 1.673 MB / 0.5447 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.3732, allocations: 0.9956 MB / 0.5456 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3732, allocations: 5 kB / 0.5456 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.3751, allocations: 0.725 MB / 0.5463 GB, free: 9.789 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000804/0.3759, allocations: 145.3 kB / 0.5465 GB, free: 9.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007803/0.3837, allocations: 5.506 MB / 0.5519 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.3843, allocations: 0.9448 MB / 0.5528 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003615/0.3847, allocations: 100.5 kB / 0.5529 GB, free: 4.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.385, allocations: 203.4 kB / 0.5531 GB, free: 4.035 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.385, allocations: 0 / 0.5531 GB, free: 4.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04062/0.4256, allocations: 12.86 MB / 0.5656 GB, free: 7.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.1, allocations: 6.406 kB / 0.5656 GB, free: 7.379 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