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.001265/0.001265, allocations: 108.6 kB / 16.51 MB, free: 6.691 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.001593/0.001593, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 15.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.163/0.163, allocations: 38.04 MB / 329.3 MB, free: 9.109 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 58.41 kB / 398.2 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09635, allocations: 58.07 MB / 456.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003512/0.0999, allocations: 2.091 MB / 458.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007543/0.1007, allocations: 0.53 MB / 458.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.824e-05/0.1007, allocations: 0 / 458.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1009, allocations: 11.92 kB / 458.9 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.695e-05/0.101, allocations: 27.89 kB / 458.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.1012, allocations: 55.86 kB / 459 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.1014, allocations: 119.7 kB / 459.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.063e-05/0.1014, allocations: 4 kB / 459.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.1015, allocations: 23.86 kB / 459.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.242e-05/0.1015, allocations: 31.84 kB / 459.1 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.1016, allocations: 11.94 kB / 459.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.1017, allocations: 71.83 kB / 459.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.701e-05/0.1018, allocations: 15.92 kB / 459.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.1018, allocations: 15.88 kB / 459.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.102, allocations: 111.9 kB / 459.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.102, allocations: 0 / 459.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.102, allocations: 4 kB / 459.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.102, allocations: 0 / 459.4 MB, free: 5.324 MB / 334.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.0003286/0.1023, allocations: 381.1 kB / 459.7 MB, free: 4.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1024, allocations: 12.03 kB / 459.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.98e-05/0.1024, allocations: 38.73 kB / 459.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.1024, allocations: 0.9375 kB / 459.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.1026, allocations: 180.2 kB / 460 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.405e-06/0.1026, allocations: 384 / 460 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.1026, allocations: 3.938 kB / 460 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.786e-05/0.1027, allocations: 49.69 kB / 460 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.179e-06/0.1027, allocations: 0 / 460 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.1027, allocations: 4 kB / 460 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.1027, allocations: 0 / 460 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.534e-05/0.1028, allocations: 23.98 kB / 460 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.1029, allocations: 161.6 kB / 460.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.72e-05/0.103, allocations: 50.44 kB / 460.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.425e-05/0.103, allocations: 32.89 kB / 460.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.103, allocations: 3.984 kB / 460.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.1031, allocations: 30.56 kB / 460.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.1031, allocations: 0 / 460.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002461/0.1033, allocations: 147.3 kB / 460.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.1034, allocations: 89.05 kB / 460.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.1036, allocations: 114.1 kB / 460.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.1036, allocations: 25.7 kB / 460.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.942e-05/0.1036, allocations: 88.14 kB / 460.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.498e-05/0.1037, allocations: 31.78 kB / 460.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.1037, allocations: 21.66 kB / 460.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1039, allocations: 318.9 kB / 461.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.136e-05/0.1039, allocations: 27.98 kB / 461.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.274e-05/0.1039, allocations: 19.98 kB / 461.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.873e-05/0.104, allocations: 124.2 kB / 461.3 MB, free: 3.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1041, allocations: 3.938 kB / 461.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000123/0.1042, allocations: 115.4 kB / 461.4 MB, free: 3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.154e-05/0.1042, allocations: 45.69 kB / 461.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.1042, allocations: 0 / 461.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1043, allocations: 0 / 461.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1043, allocations: 3.938 kB / 461.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.1043, allocations: 4.375 kB / 461.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.414e-05/0.1043, allocations: 7.906 kB / 461.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.1043, allocations: 7.984 kB / 461.5 MB, free: 2.926 MB / 334.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.697e-05/0.1044, allocations: 151.5 kB / 461.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.1044, allocations: 4 kB / 461.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.1045, allocations: 12.38 kB / 461.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1045, allocations: 0 / 461.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1045, allocations: 0 / 461.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1045, allocations: 3.984 kB / 461.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.1046, allocations: 177.5 kB / 461.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1046, allocations: 0 / 461.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.1046, allocations: 0 / 461.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1046, allocations: 0 / 461.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.1046, allocations: 4 kB / 461.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1046, allocations: 0 / 461.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1046, allocations: 0 / 461.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.1049, allocations: 214.6 kB / 462 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.105, allocations: 92.97 kB / 462.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.105, allocations: 4.031 kB / 462.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.746e-05/0.1051, allocations: 7.938 kB / 462.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.1051, allocations: 4 kB / 462.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.1051, allocations: 4 kB / 462.2 MB, free: 2.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.657e-05/0.1051, allocations: 95.2 kB / 462.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1051, allocations: 0 / 462.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002255/0.1054, allocations: 24 kB / 462.3 MB, free: 2.031 MB / 334.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.0005659/0.1059, allocations: 0.7585 MB / 463 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.1062, allocations: 199.3 kB / 463.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1062, allocations: 0 / 463.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.1063, allocations: 147.4 kB / 463.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.1066, allocations: 8.875 kB / 463.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.1081, allocations: 1.545 MB / 464.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1084, allocations: 0.6926 MB / 465.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.343e-05/0.1084, allocations: 0 / 465.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.1085, allocations: 15.44 kB / 465.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1085, allocations: 0 / 465.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01196/0.1204, allocations: 1.989 MB / 467.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.1207, allocations: 217.4 kB / 467.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.744, allocations: 3.281 kB / 467.8 MB, free: 12.39 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches