Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001461/0.001461, allocations: 114.6 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.001501/0.001501, allocations: 194.9 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.357/1.357, 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.1858/0.1858, allocations: 38.04 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 55.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3647, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008079/0.3728, allocations: 6.776 MB / 0.5102 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00412/0.377, allocations: 2.138 MB / 0.5123 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006462/0.3776, allocations: 30.66 kB / 0.5124 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.3792, allocations: 0.507 MB / 0.5129 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.3807, allocations: 0.5583 MB / 0.5134 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.382, allocations: 369.8 kB / 0.5138 GB, free: 460 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.384, allocations: 1.306 MB / 0.515 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.3851, allocations: 0.729 MB / 0.5157 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.3862, allocations: 0.5542 MB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.3874, allocations: 0.6877 MB / 0.517 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001862/0.3876, allocations: 99.72 kB / 0.517 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/0.3889, allocations: 0.5168 MB / 0.5176 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006531/0.3895, allocations: 462.6 kB / 0.518 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007057/0.3903, allocations: 0.5224 MB / 0.5185 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0021/0.3924, allocations: 1.467 MB / 0.5199 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3924, allocations: 1.25 kB / 0.5199 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3924, allocations: 0 / 0.5199 GB, free: 13.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.792e-05/0.3924, allocations: 0 / 0.5199 GB, free: 13.95 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.00342/0.3959, allocations: 1.373 MB / 0.5213 GB, free: 13.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3959, allocations: 13.33 kB / 0.5213 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000225/0.3962, allocations: 142.8 kB / 0.5214 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009211/0.3971, allocations: 149.3 kB / 0.5216 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.3987, allocations: 0.6978 MB / 0.5223 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002435/0.399, allocations: 181.5 kB / 0.5224 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.3992, allocations: 89.91 kB / 0.5225 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.4019, allocations: 1.368 MB / 0.5238 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.402, allocations: 6.875 kB / 0.5239 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.4021, allocations: 31.69 kB / 0.5239 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001886/0.4023, allocations: 62.3 kB / 0.5239 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/0.405, allocations: 1.297 MB / 0.5252 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00824/0.4132, allocations: 4.911 MB / 0.53 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.4156, allocations: 1.135 MB / 0.5311 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.4169, allocations: 0.6231 MB / 0.5317 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.968e-05/0.4169, allocations: 11.77 kB / 0.5317 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.417, allocations: 42.84 kB / 0.5318 GB, free: 6.969 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.957e-06/0.417, allocations: 0 / 0.5318 GB, free: 6.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.007091/0.4241, allocations: 3.192 MB / 0.5349 GB, free: 5.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.4242, allocations: 88.36 kB / 0.535 GB, free: 4.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006263/0.4248, allocations: 466 kB / 0.5354 GB, free: 4.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.358e-05/0.4249, allocations: 40.45 kB / 0.5355 GB, free: 4.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.4252, allocations: 401.9 kB / 0.5358 GB, free: 4.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.4255, allocations: 269.6 kB / 0.5361 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.4258, allocations: 157.6 kB / 0.5363 GB, free: 3.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.426, allocations: 371.5 kB / 0.5366 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009978/0.427, allocations: 0.4977 MB / 0.5371 GB, free: 3.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.4282, allocations: 0.6826 MB / 0.5378 GB, free: 2.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.4305, allocations: 1.222 MB / 0.539 GB, free: 2.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4305, allocations: 2.75 kB / 0.539 GB, free: 2.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.005127/0.4356, allocations: 1.98 MB / 0.5409 GB, free: 1.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.4357, allocations: 11.47 kB / 0.5409 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004433/0.4401, allocations: 1.715 MB / 0.5426 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/0.4422, allocations: 0.6572 MB / 0.5432 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006651/0.4429, allocations: 151.8 kB / 0.5434 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/0.4546, allocations: 7.407 MB / 0.5506 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009296/0.4555, allocations: 71.91 kB / 0.5507 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.795e-05/0.4556, allocations: 28 kB / 0.5507 GB, free: 7.441 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0005765/0.4562, allocations: 317.5 kB / 0.551 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.4564, allocations: 63.62 kB / 0.5511 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.4587, allocations: 1.301 MB / 0.5523 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/0.4588, allocations: 16 kB / 0.5523 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4588, allocations: 4 kB / 0.5523 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4588, allocations: 3.984 kB / 0.5523 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004205/0.463, allocations: 2.409 MB / 0.5547 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.463, allocations: 0 / 0.5547 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/0.4657, allocations: 495.4 kB / 0.5552 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.4659, allocations: 44.83 kB / 0.5552 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.4659, allocations: 12 kB / 0.5552 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.4672, allocations: 1.63 MB / 0.5568 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.4672, allocations: 4.031 kB / 0.5568 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003302/0.4705, allocations: 2.013 MB / 0.5588 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.4707, allocations: 140.6 kB / 0.5589 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.4708, allocations: 16 kB / 0.5589 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005383/0.4714, allocations: 59.91 kB / 0.559 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.4716, allocations: 68.41 kB / 0.5591 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-05/0.4716, allocations: 19.94 kB / 0.5591 GB, free: 14.51 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.472, allocations: 318.9 kB / 0.5594 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.472, allocations: 3.938 kB / 0.5594 GB, free: 14.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00124/0.4733, allocations: 232 kB / 0.5596 GB, free: 13.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003858/0.4771, allocations: 2.588 MB / 0.5621 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.4803, allocations: 1.571 MB / 0.5637 GB, free: 9.727 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4803, allocations: 0 / 0.5637 GB, free: 9.727 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002748/0.4831, allocations: 1.006 MB / 0.5646 GB, free: 8.707 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.4841, allocations: 173.5 kB / 0.5648 GB, free: 8.547 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.5005, allocations: 9.437 MB / 0.574 GB, free: 14.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006745/0.5012, allocations: 1.075 MB / 0.5751 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006039/0.5018, allocations: 213.5 kB / 0.5753 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004439/0.5023, allocations: 291.3 kB / 0.5756 GB, free: 13.19 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5023, allocations: 0 / 0.5756 GB, free: 13.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04779/0.5501, allocations: 20.28 MB / 0.5954 GB, free: 9.148 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.29, allocations: 11.95 kB / 0.5954 GB, free: 9.137 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches