Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001387/0.001387, allocations: 113.7 kB / 17.07 MB, free: 5.965 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: 193.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.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1835/0.1835, allocations: 38.04 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 67.89 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3596, allocations: 58.07 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.002976/0.3626, allocations: 2.034 MB / 0.5056 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006606/0.3633, allocations: 0.522 MB / 0.5061 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.944e-05/0.3634, allocations: 5.281 kB / 0.5061 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.3635, allocations: 13.05 kB / 0.5062 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.3636, allocations: 24.8 kB / 0.5062 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.3639, allocations: 63.58 kB / 0.5062 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.364, allocations: 59.36 kB / 0.5063 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.3641, allocations: 3.594 kB / 0.5063 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.391e-05/0.3642, allocations: 36.81 kB / 0.5063 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.08e-05/0.3642, allocations: 28.97 kB / 0.5064 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3642, allocations: 1.125 kB / 0.5064 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.3644, allocations: 78.27 kB / 0.5064 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.237e-05/0.3645, allocations: 16.22 kB / 0.5065 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.3645, allocations: 18.27 kB / 0.5065 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.3647, allocations: 110.9 kB / 0.5066 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3647, allocations: 1 kB / 0.5066 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3647, allocations: 4 kB / 0.5066 GB, free: 5.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.3647, allocations: 3.938 kB / 0.5066 GB, free: 5.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003251/0.365, allocations: 399.7 kB / 0.507 GB, free: 5.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3651, allocations: 8.875 kB / 0.507 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.441e-05/0.3651, allocations: 40.22 kB / 0.507 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.3651, allocations: 7.078 kB / 0.507 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.3653, allocations: 177.2 kB / 0.5072 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.3653, allocations: 1.25 kB / 0.5072 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.3653, allocations: 6.688 kB / 0.5072 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.3654, allocations: 65.86 kB / 0.5073 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.3654, allocations: 1.125 kB / 0.5073 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.3655, allocations: 3.938 kB / 0.5073 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3655, allocations: 1.094 kB / 0.5073 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.596e-05/0.3655, allocations: 28.89 kB / 0.5073 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001063/0.3656, allocations: 172.6 kB / 0.5075 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.626e-05/0.3657, allocations: 58.23 kB / 0.5075 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.658e-05/0.3657, allocations: 44.09 kB / 0.5076 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.3658, allocations: 9.25 kB / 0.5076 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3658, allocations: 32.47 kB / 0.5076 GB, free: 4.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.3658, allocations: 3.938 kB / 0.5076 GB, free: 4.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002658/0.3661, allocations: 179 kB / 0.5078 GB, free: 4.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.3661, allocations: 87.5 kB / 0.5079 GB, free: 4.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.832e-05/0.3662, allocations: 123.5 kB / 0.508 GB, free: 4.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-06/0.3662, allocations: 25.7 kB / 0.508 GB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.646e-05/0.3662, allocations: 91.61 kB / 0.5081 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3663, allocations: 36.94 kB / 0.5081 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.3663, allocations: 22.53 kB / 0.5081 GB, free: 4.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.025e-05/0.3664, allocations: 315.5 kB / 0.5084 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-05/0.3664, allocations: 37.09 kB / 0.5085 GB, free: 3.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.751e-05/0.3665, allocations: 33.17 kB / 0.5085 GB, free: 3.691 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.3666, allocations: 155.2 kB / 0.5087 GB, free: 3.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3666, allocations: 1.125 kB / 0.5087 GB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001459/0.3668, allocations: 144.9 kB / 0.5088 GB, free: 3.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.636e-05/0.3668, allocations: 54.08 kB / 0.5088 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3668, allocations: 0.5156 kB / 0.5088 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.3669, allocations: 0 / 0.5088 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3669, allocations: 1.062 kB / 0.5088 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.3669, allocations: 4.594 kB / 0.5089 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.855e-05/0.3669, allocations: 11.3 kB / 0.5089 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.3669, allocations: 4.141 kB / 0.5089 GB, free: 3.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.911e-05/0.367, allocations: 167.2 kB / 0.509 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.3671, allocations: 13.95 kB / 0.509 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.513e-05/0.3671, allocations: 10.88 kB / 0.509 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.3671, allocations: 1.375 kB / 0.5091 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3671, allocations: 0.6094 kB / 0.5091 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3671, allocations: 0 / 0.5091 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.352e-05/0.3672, allocations: 180.4 kB / 0.5092 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3672, allocations: 0 / 0.5092 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.3672, allocations: 1.844 kB / 0.5092 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3672, allocations: 3.938 kB / 0.5092 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3672, allocations: 3.344 kB / 0.5092 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3672, allocations: 0.75 kB / 0.5092 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3672, allocations: 4 kB / 0.5092 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.3676, allocations: 275.7 kB / 0.5095 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.457e-05/0.3676, allocations: 87.95 kB / 0.5096 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.3676, allocations: 3.984 kB / 0.5096 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.789e-05/0.3677, allocations: 2.703 kB / 0.5096 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.3677, allocations: 1.344 kB / 0.5096 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.3677, allocations: 7.172 kB / 0.5096 GB, free: 2.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.427e-05/0.3677, allocations: 101.9 kB / 0.5097 GB, free: 2.773 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3677, allocations: 3.938 kB / 0.5097 GB, free: 2.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.368, allocations: 38.38 kB / 0.5097 GB, free: 2.762 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005443/0.3685, allocations: 0.8237 MB / 0.5105 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003545/0.3689, allocations: 288.2 kB / 0.5108 GB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3689, allocations: 4.094 kB / 0.5108 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.3691, allocations: 227.2 kB / 0.511 GB, free: 1.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.3694, allocations: 11.09 kB / 0.511 GB, free: 1.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.371, allocations: 1.77 MB / 0.5128 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.3712, allocations: 0.6992 MB / 0.5135 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.225e-05/0.3713, allocations: 5.781 kB / 0.5135 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.384e-05/0.3713, allocations: 22.42 kB / 0.5135 GB, free: 15.82 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3713, allocations: 32 / 0.5135 GB, free: 15.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.3978, allocations: 2.578 MB / 0.516 GB, free: 15.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/8.262, allocations: 12.97 kB / 0.516 GB, free: 15.38 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches