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.001184/0.001184, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001285/0.001285, allocations: 198.8 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.471/1.471, 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.1838/0.1838, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4051, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003855/0.409, allocations: 2.042 MB / 0.5056 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000806/0.4099, allocations: 0.5247 MB / 0.5061 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-05/0.4099, allocations: 1.094 kB / 0.5061 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.4101, allocations: 10.28 kB / 0.5061 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.428e-05/0.4102, allocations: 24.3 kB / 0.5062 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.4106, allocations: 68.69 kB / 0.5062 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.4107, allocations: 61.91 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.783e-05/0.4108, allocations: 3.031 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.73e-05/0.4109, allocations: 32.97 kB / 0.5063 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.411, allocations: 32.91 kB / 0.5064 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.411, allocations: 1.031 kB / 0.5064 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.4112, allocations: 78.91 kB / 0.5064 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.4113, allocations: 24.08 kB / 0.5065 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.4113, allocations: 36.81 kB / 0.5065 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.4116, allocations: 122.1 kB / 0.5066 GB, free: 5.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4116, allocations: 1.219 kB / 0.5066 GB, free: 5.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4116, allocations: 0 / 0.5066 GB, free: 5.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.4116, allocations: 0 / 0.5066 GB, free: 5.504 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.000437/0.412, allocations: 441.8 kB / 0.507 GB, free: 5.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4121, allocations: 18.11 kB / 0.507 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.3e-05/0.4121, allocations: 40.53 kB / 0.5071 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.4122, allocations: 13.41 kB / 0.5071 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.4124, allocations: 192.2 kB / 0.5073 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.4124, allocations: 384 / 0.5073 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.4124, allocations: 6.125 kB / 0.5073 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.4126, allocations: 87.23 kB / 0.5074 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.4126, allocations: 1.531 kB / 0.5074 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.4126, allocations: 0 / 0.5074 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.4126, allocations: 4 kB / 0.5074 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.223e-05/0.4127, allocations: 69.44 kB / 0.5074 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001481/0.4129, allocations: 178.7 kB / 0.5076 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.413, allocations: 101.8 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.4131, allocations: 88.86 kB / 0.5078 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.4131, allocations: 0 / 0.5078 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.4131, allocations: 36.7 kB / 0.5078 GB, free: 4.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 8.72e-07/0.4131, allocations: 0 / 0.5078 GB, free: 4.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005062/0.4137, allocations: 302.5 kB / 0.5081 GB, free: 4.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.4137, allocations: 93.77 kB / 0.5082 GB, free: 4.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.4139, allocations: 134 kB / 0.5083 GB, free: 4.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.4139, allocations: 26.92 kB / 0.5084 GB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.4139, allocations: 93.89 kB / 0.5085 GB, free: 3.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.414, allocations: 80.03 kB / 0.5085 GB, free: 3.883 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.414, allocations: 26 kB / 0.5086 GB, free: 3.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.583e-05/0.4141, allocations: 327.7 kB / 0.5089 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.517e-05/0.4142, allocations: 60.84 kB / 0.5089 GB, free: 3.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.717e-05/0.4143, allocations: 56.75 kB / 0.509 GB, free: 3.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.4146, allocations: 247.9 kB / 0.5092 GB, free: 3.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4146, allocations: 3.938 kB / 0.5092 GB, free: 3.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002717/0.4148, allocations: 227.3 kB / 0.5094 GB, free: 3.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/0.4149, allocations: 65.53 kB / 0.5095 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4149, allocations: 0.6094 kB / 0.5095 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.415, allocations: 1.406 kB / 0.5095 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.828e-06/0.415, allocations: 8.062 kB / 0.5095 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.415, allocations: 4.453 kB / 0.5095 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.928e-05/0.415, allocations: 14.39 kB / 0.5095 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.4151, allocations: 7.922 kB / 0.5095 GB, free: 3.25 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.0001634/0.4152, allocations: 194.9 kB / 0.5097 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.4153, allocations: 16.06 kB / 0.5097 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.848e-05/0.4153, allocations: 13.25 kB / 0.5097 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4153, allocations: 0.7969 kB / 0.5097 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4153, allocations: 5.984 kB / 0.5098 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4153, allocations: 0 / 0.5098 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.4154, allocations: 198.9 kB / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4155, allocations: 0.8906 kB / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.543e-06/0.4155, allocations: 1.031 kB / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.4155, allocations: 0 / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4155, allocations: 4.594 kB / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4155, allocations: 0.8438 kB / 0.5099 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4155, allocations: 5.188 kB / 0.51 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006324/0.4161, allocations: 0.5063 MB / 0.5104 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.4162, allocations: 97.39 kB / 0.5105 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.4162, allocations: 7.094 kB / 0.5105 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.619e-05/0.4163, allocations: 4.406 kB / 0.5106 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.4163, allocations: 2.766 kB / 0.5106 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4163, allocations: 5.625 kB / 0.5106 GB, free: 2.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.176e-05/0.4164, allocations: 104.1 kB / 0.5107 GB, free: 2.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4164, allocations: 0 / 0.5107 GB, free: 2.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003083/0.4167, allocations: 45.41 kB / 0.5107 GB, free: 2.488 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.0008976/0.4176, allocations: 1.067 MB / 0.5117 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007443/0.4183, allocations: 0.6989 MB / 0.5124 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4184, allocations: 0 / 0.5124 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004733/0.4188, allocations: 0.5686 MB / 0.513 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.4191, allocations: 20.72 kB / 0.513 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.4223, allocations: 2.476 MB / 0.5154 GB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.4228, allocations: 0.7196 MB / 0.5161 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.34e-05/0.4229, allocations: 1.688 kB / 0.5161 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/0.423, allocations: 31.73 kB / 0.5162 GB, free: 14.95 MB / 398.1 MB Notification: Performance of SimCode: time 8.91e-07/0.423, allocations: 4.594 kB / 0.5162 GB, free: 14.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.4472, allocations: 3.598 MB / 0.5197 GB, free: 14.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.132, allocations: 14.44 kB / 0.5197 GB, free: 14.44 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_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_matrixEqCirc2.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv","/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