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.001119/0.001119, allocations: 108.4 kB / 17.06 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.001086/0.001086, allocations: 198.8 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.396/1.396, 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.1816/0.1816, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 67.88 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3715, allocations: 58.06 MB / 0.5036 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003386/0.3749, allocations: 2.041 MB / 0.5056 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000709/0.3756, allocations: 0.5262 MB / 0.5061 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.149e-05/0.3757, allocations: 1.156 kB / 0.5061 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.3759, allocations: 9.109 kB / 0.5062 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.376, allocations: 29.34 kB / 0.5062 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000303/0.3763, allocations: 62.27 kB / 0.5062 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.3764, allocations: 60.38 kB / 0.5063 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.793e-05/0.3765, allocations: 3.734 kB / 0.5063 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.255e-05/0.3766, allocations: 37.33 kB / 0.5063 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.34e-05/0.3767, allocations: 32.47 kB / 0.5064 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.3767, allocations: 3.938 kB / 0.5064 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.3769, allocations: 75.42 kB / 0.5064 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.3769, allocations: 16.2 kB / 0.5065 GB, free: 5.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.377, allocations: 17.16 kB / 0.5065 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.3772, allocations: 113.2 kB / 0.5066 GB, free: 5.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3772, allocations: 0 / 0.5066 GB, free: 5.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.3772, allocations: 0 / 0.5066 GB, free: 5.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3772, allocations: 3.938 kB / 0.5066 GB, free: 5.594 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.0003551/0.3776, allocations: 399.2 kB / 0.507 GB, free: 5.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3776, allocations: 18.58 kB / 0.507 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.549e-05/0.3777, allocations: 37.62 kB / 0.507 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.817e-05/0.3777, allocations: 8.859 kB / 0.507 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.3778, allocations: 177.2 kB / 0.5072 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3778, allocations: 1.5 kB / 0.5072 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.3779, allocations: 4.969 kB / 0.5072 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.378, allocations: 66.38 kB / 0.5073 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.378, allocations: 3.906 kB / 0.5073 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.378, allocations: 0 / 0.5073 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.378, allocations: 1.125 kB / 0.5073 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.722e-05/0.3781, allocations: 32.08 kB / 0.5073 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001388/0.3782, allocations: 168.9 kB / 0.5075 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.964e-05/0.3783, allocations: 59.14 kB / 0.5075 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.537e-05/0.3784, allocations: 47.69 kB / 0.5076 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.3784, allocations: 1.469 kB / 0.5076 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.3784, allocations: 31.36 kB / 0.5076 GB, free: 4.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3785, allocations: 9.25 kB / 0.5076 GB, free: 4.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003035/0.3788, allocations: 178 kB / 0.5078 GB, free: 4.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3788, allocations: 87.09 kB / 0.5079 GB, free: 4.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.629e-05/0.3789, allocations: 123.5 kB / 0.508 GB, free: 4.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.3789, allocations: 26.67 kB / 0.508 GB, free: 4.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.379, allocations: 87.52 kB / 0.5081 GB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.379, allocations: 37.67 kB / 0.5081 GB, free: 4.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.379, allocations: 17.22 kB / 0.5081 GB, free: 4.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.477e-05/0.3791, allocations: 325.2 kB / 0.5084 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.605e-05/0.3792, allocations: 32.47 kB / 0.5085 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.139e-05/0.3792, allocations: 29 kB / 0.5085 GB, free: 3.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.3794, allocations: 160 kB / 0.5087 GB, free: 3.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3794, allocations: 0 / 0.5087 GB, free: 3.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000143/0.3795, allocations: 149.1 kB / 0.5088 GB, free: 3.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.746e-05/0.3796, allocations: 50.03 kB / 0.5088 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.3796, allocations: 0 / 0.5088 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3796, allocations: 1.219 kB / 0.5089 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.3796, allocations: 0.7031 kB / 0.5089 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3796, allocations: 4.062 kB / 0.5089 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.832e-05/0.3796, allocations: 11.3 kB / 0.5089 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3797, allocations: 3.797 kB / 0.5089 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 0.0001014/0.3798, allocations: 172 kB / 0.509 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.3798, allocations: 9.422 kB / 0.509 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.366e-05/0.3798, allocations: 7.812 kB / 0.509 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.3798, allocations: 0 / 0.509 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3798, allocations: 1.797 kB / 0.5091 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3798, allocations: 0 / 0.5091 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.445e-05/0.3799, allocations: 187.3 kB / 0.5092 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.38, allocations: 1.062 kB / 0.5092 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.106e-06/0.38, allocations: 0.6562 kB / 0.5092 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.38, allocations: 5 kB / 0.5092 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.38, allocations: 2.797 kB / 0.5092 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.38, allocations: 1.125 kB / 0.5092 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.38, allocations: 0 / 0.5092 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.3803, allocations: 275.8 kB / 0.5095 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.537e-05/0.3803, allocations: 92 kB / 0.5096 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.3804, allocations: 3.938 kB / 0.5096 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.92e-05/0.3804, allocations: 5.281 kB / 0.5096 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.3804, allocations: 2.344 kB / 0.5096 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.3804, allocations: 3.594 kB / 0.5096 GB, free: 2.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.455e-05/0.3805, allocations: 98.39 kB / 0.5097 GB, free: 2.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3805, allocations: 0 / 0.5097 GB, free: 2.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.3808, allocations: 31.97 kB / 0.5097 GB, free: 2.863 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.0005801/0.3813, allocations: 0.8331 MB / 0.5105 GB, free: 2.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.3817, allocations: 291.9 kB / 0.5108 GB, free: 2.051 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.3817, allocations: 0 / 0.5108 GB, free: 2.051 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.3819, allocations: 227.7 kB / 0.511 GB, free: 1.922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.3822, allocations: 11.03 kB / 0.511 GB, free: 1.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.3838, allocations: 1.771 MB / 0.5128 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.384, allocations: 0.7018 MB / 0.5135 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.036e-05/0.384, allocations: 5.75 kB / 0.5135 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.384, allocations: 18.33 kB / 0.5135 GB, free: 15.92 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.384, allocations: 1.094 kB / 0.5135 GB, free: 15.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.4044, allocations: 2.557 MB / 0.516 GB, free: 15.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.577/7.981, allocations: 13.12 kB / 0.516 GB, free: 15.48 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