Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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_matrixEqCirc0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",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.001522/0.001522, allocations: 109.7 kB / 17.06 MB, free: 6.016 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.001551/0.001551, allocations: 191 kB / 18 MB, free: 5.102 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.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.263/0.263, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3598, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003125/0.3629, allocations: 2.053 MB / 0.5056 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006505/0.3636, allocations: 0.5179 MB / 0.5061 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.919e-05/0.3637, allocations: 1.188 kB / 0.5061 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.3638, allocations: 10.31 kB / 0.5062 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.74e-05/0.364, allocations: 37.09 kB / 0.5062 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.3642, allocations: 59.06 kB / 0.5062 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.3644, allocations: 66.77 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.3644, allocations: 4.031 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.238e-05/0.3645, allocations: 34.7 kB / 0.5063 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.538e-05/0.3646, allocations: 29.59 kB / 0.5064 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.3646, allocations: 1 kB / 0.5064 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.3648, allocations: 74.3 kB / 0.5064 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.171e-05/0.3648, allocations: 11.05 kB / 0.5065 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.59e-05/0.3649, allocations: 26.2 kB / 0.5065 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.365, allocations: 87.44 kB / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3651, allocations: 0 / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3651, allocations: 1.25 kB / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.3651, allocations: 0 / 0.5066 GB, free: 5.539 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003111/0.3654, allocations: 396.4 kB / 0.5069 GB, free: 5.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3654, allocations: 10.12 kB / 0.507 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.663e-05/0.3655, allocations: 36.91 kB / 0.507 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.3655, allocations: 4.547 kB / 0.507 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.3656, allocations: 177.4 kB / 0.5072 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.3656, allocations: 8.312 kB / 0.5072 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-06/0.3656, allocations: 5.344 kB / 0.5072 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.3658, allocations: 55.11 kB / 0.5072 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3658, allocations: 1.375 kB / 0.5072 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-06/0.3658, allocations: 0.7031 kB / 0.5072 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.3658, allocations: 0 / 0.5072 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.868e-05/0.3658, allocations: 21.95 kB / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001054/0.3659, allocations: 161.6 kB / 0.5074 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.902e-05/0.366, allocations: 54.7 kB / 0.5075 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.3661, allocations: 33.12 kB / 0.5075 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.375e-06/0.3661, allocations: 0.8438 kB / 0.5075 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.3661, allocations: 32.66 kB / 0.5075 GB, free: 4.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.3661, allocations: 0 / 0.5075 GB, free: 4.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002232/0.3663, allocations: 143 kB / 0.5077 GB, free: 4.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.3664, allocations: 84.03 kB / 0.5077 GB, free: 4.363 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.377e-05/0.3665, allocations: 119.5 kB / 0.5079 GB, free: 4.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.3665, allocations: 26.83 kB / 0.5079 GB, free: 4.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.3665, allocations: 85.89 kB / 0.508 GB, free: 4.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.3665, allocations: 30.64 kB / 0.508 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.3666, allocations: 16.91 kB / 0.508 GB, free: 4.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.3666, allocations: 319.1 kB / 0.5083 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.3667, allocations: 20.73 kB / 0.5083 GB, free: 3.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.893e-05/0.3667, allocations: 18.48 kB / 0.5083 GB, free: 3.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.874e-05/0.3668, allocations: 125.9 kB / 0.5085 GB, free: 3.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3668, allocations: 3.938 kB / 0.5085 GB, free: 3.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001253/0.3669, allocations: 128.8 kB / 0.5086 GB, free: 3.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.367, allocations: 41.42 kB / 0.5086 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.367, allocations: 5.875 kB / 0.5086 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.367, allocations: 0 / 0.5086 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.367, allocations: 0 / 0.5086 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.367, allocations: 2.109 kB / 0.5086 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.367, allocations: 5.875 kB / 0.5086 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.3671, allocations: 6.625 kB / 0.5087 GB, free: 3.566 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 8.36e-05/0.3672, allocations: 160.1 kB / 0.5088 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.3672, allocations: 8.516 kB / 0.5088 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.3672, allocations: 6.875 kB / 0.5088 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3672, allocations: 5.219 kB / 0.5088 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3672, allocations: 0 / 0.5088 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3672, allocations: 0.7031 kB / 0.5088 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.448e-05/0.3673, allocations: 174.1 kB / 0.509 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3673, allocations: 1.062 kB / 0.509 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.3673, allocations: 0.6094 kB / 0.509 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.3673, allocations: 0 / 0.509 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3673, allocations: 7.922 kB / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3673, allocations: 0 / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3673, allocations: 0.6094 kB / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.3676, allocations: 216.8 kB / 0.5092 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.312e-05/0.3676, allocations: 84.11 kB / 0.5093 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3676, allocations: 1.125 kB / 0.5093 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.668e-05/0.3677, allocations: 3.078 kB / 0.5093 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/0.3677, allocations: 1.984 kB / 0.5093 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.3677, allocations: 6.25 kB / 0.5093 GB, free: 2.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.581e-05/0.3677, allocations: 90.8 kB / 0.5094 GB, free: 2.891 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3677, allocations: 0 / 0.5094 GB, free: 2.891 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002407/0.368, allocations: 28.22 kB / 0.5094 GB, free: 2.887 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.0005266/0.3685, allocations: 0.7615 MB / 0.5102 GB, free: 2.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002442/0.3688, allocations: 205.9 kB / 0.5104 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3688, allocations: 0 / 0.5104 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3689, allocations: 148.6 kB / 0.5105 GB, free: 2.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3692, allocations: 13.53 kB / 0.5105 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.3706, allocations: 1.54 MB / 0.512 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.3708, allocations: 0.6904 MB / 0.5127 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.766e-05/0.3708, allocations: 1.859 kB / 0.5127 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.763e-05/0.3708, allocations: 21.36 kB / 0.5127 GB, free: 92 kB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3708, allocations: 288 / 0.5127 GB, free: 92 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.3914, allocations: 2.185 MB / 0.5148 GB, free: 15.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.737/8.129, allocations: 12.81 kB / 0.5149 GB, free: 15.68 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_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_matrixEqCirc0.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches