Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.00167/0.00167, allocations: 108.4 kB / 17.06 MB, free: 5.969 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.001781/0.001781, allocations: 200 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.473/1.473, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1908/0.1908, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3561, allocations: 58.06 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003084/0.3593, allocations: 2.046 MB / 0.5056 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006908/0.36, allocations: 0.522 MB / 0.5061 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.353e-05/0.36, allocations: 0 / 0.5061 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.3602, allocations: 10.19 kB / 0.5062 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.137e-05/0.3603, allocations: 24.94 kB / 0.5062 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003475/0.3606, allocations: 75.48 kB / 0.5062 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.3608, allocations: 58.89 kB / 0.5063 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.453e-05/0.3608, allocations: 4.188 kB / 0.5063 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.876e-05/0.3609, allocations: 32.11 kB / 0.5063 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.01e-05/0.361, allocations: 23.78 kB / 0.5064 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.361, allocations: 1.156 kB / 0.5064 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.3612, allocations: 78.81 kB / 0.5064 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.956e-05/0.3612, allocations: 24.23 kB / 0.5065 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.3613, allocations: 32.94 kB / 0.5065 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.3615, allocations: 126.8 kB / 0.5066 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3615, allocations: 4 kB / 0.5066 GB, free: 5.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3615, allocations: 0 / 0.5066 GB, free: 5.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3615, allocations: 1.094 kB / 0.5066 GB, free: 5.562 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003802/0.3619, allocations: 445.1 kB / 0.507 GB, free: 5.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.362, allocations: 14.05 kB / 0.5071 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.129e-05/0.362, allocations: 41.7 kB / 0.5071 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.3621, allocations: 11.75 kB / 0.5071 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.3622, allocations: 193 kB / 0.5073 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3622, allocations: 1.812 kB / 0.5073 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.3622, allocations: 3.938 kB / 0.5073 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.3624, allocations: 91.56 kB / 0.5074 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3624, allocations: 0.6094 kB / 0.5074 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.3624, allocations: 1.156 kB / 0.5074 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3624, allocations: 0 / 0.5074 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.607e-05/0.3625, allocations: 61.3 kB / 0.5074 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.3627, allocations: 183.5 kB / 0.5076 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.3628, allocations: 102.2 kB / 0.5077 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.944e-05/0.3629, allocations: 90.03 kB / 0.5078 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.3629, allocations: 0 / 0.5078 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.3629, allocations: 32.19 kB / 0.5078 GB, free: 4.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 7.82e-07/0.3629, allocations: 3.938 kB / 0.5078 GB, free: 4.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004224/0.3633, allocations: 300 kB / 0.5081 GB, free: 4.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3634, allocations: 103.4 kB / 0.5082 GB, free: 4.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.3635, allocations: 132.1 kB / 0.5083 GB, free: 4.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.3635, allocations: 26.8 kB / 0.5084 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.3635, allocations: 97.06 kB / 0.5085 GB, free: 4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.861e-05/0.3636, allocations: 76.17 kB / 0.5085 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.3636, allocations: 27.03 kB / 0.5086 GB, free: 3.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.807e-05/0.3637, allocations: 324.1 kB / 0.5089 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.481e-05/0.3638, allocations: 63.58 kB / 0.5089 GB, free: 3.586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.157e-05/0.3639, allocations: 57.92 kB / 0.509 GB, free: 3.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.3641, allocations: 246.6 kB / 0.5092 GB, free: 3.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3641, allocations: 5.344 kB / 0.5092 GB, free: 3.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000238/0.3644, allocations: 230.1 kB / 0.5094 GB, free: 3.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.695e-05/0.3644, allocations: 63.84 kB / 0.5095 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3644, allocations: 5.25 kB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.3645, allocations: 0 / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.944e-06/0.3645, allocations: 0.7031 kB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.3645, allocations: 1.312 kB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.614e-05/0.3645, allocations: 13.17 kB / 0.5095 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.3645, allocations: 5.156 kB / 0.5095 GB, free: 3.316 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.0001491/0.3647, allocations: 197.6 kB / 0.5097 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.3647, allocations: 22.02 kB / 0.5097 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.91e-05/0.3647, allocations: 8.734 kB / 0.5098 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3648, allocations: 1.094 kB / 0.5098 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3648, allocations: 0 / 0.5098 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3648, allocations: 0.5156 kB / 0.5098 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.3649, allocations: 208.1 kB / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3649, allocations: 0 / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3649, allocations: 0 / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.3649, allocations: 2.281 kB / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3649, allocations: 4.438 kB / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.3649, allocations: 0 / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3649, allocations: 4.656 kB / 0.51 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.3655, allocations: 0.5045 MB / 0.5105 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.862e-05/0.3656, allocations: 91.8 kB / 0.5105 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.3656, allocations: 4.797 kB / 0.5105 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.486e-05/0.3656, allocations: 3.719 kB / 0.5106 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.3657, allocations: 9.359 kB / 0.5106 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3657, allocations: 4.531 kB / 0.5106 GB, free: 2.637 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.503e-05/0.3657, allocations: 104.8 kB / 0.5107 GB, free: 2.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3657, allocations: 0 / 0.5107 GB, free: 2.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.366, allocations: 48.94 kB / 0.5107 GB, free: 2.547 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.0008292/0.3668, allocations: 1.061 MB / 0.5117 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007163/0.3676, allocations: 0.7024 MB / 0.5124 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3676, allocations: 4.094 kB / 0.5124 GB, free: 1.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.368, allocations: 0.5685 MB / 0.513 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.3683, allocations: 24.05 kB / 0.513 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.3709, allocations: 2.476 MB / 0.5154 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.3713, allocations: 0.7195 MB / 0.5161 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.936e-05/0.3713, allocations: 2.219 kB / 0.5161 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.55e-05/0.3714, allocations: 31.89 kB / 0.5162 GB, free: 15 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3714, allocations: 4 kB / 0.5162 GB, free: 15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.3982, allocations: 3.588 MB / 0.5197 GB, free: 14.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.734, allocations: 16.78 kB / 0.5197 GB, free: 14.5 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches