Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.0008618/0.0008618, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.001083/0.001083, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.267/1.267, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1668/0.1668, allocations: 38.1 MB / 330.8 MB, free: 8.531 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002905, allocations: 8.5 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09549, allocations: 59.17 MB / 460 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005048/0.1006, allocations: 4.81 MB / 464.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.103, allocations: 1.73 MB / 466.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.1032, allocations: 23.81 kB / 466.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.1034, allocations: 63.53 kB / 466.6 MB, free: 292 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005287/0.1039, allocations: 242.9 kB / 466.8 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.1045, allocations: 227.6 kB / 467.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008085/0.1053, allocations: 0.9238 MB / 468 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006751/0.106, allocations: 484.4 kB / 468.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.1063, allocations: 215 kB / 468.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004257/0.1067, allocations: 322.9 kB / 469 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.1067, allocations: 20 kB / 469 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.107, allocations: 135.8 kB / 469.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.1072, allocations: 215.4 kB / 469.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.1074, allocations: 248.5 kB / 469.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005166/0.108, allocations: 0.5683 MB / 470.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.108, allocations: 0 / 470.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.108, allocations: 4 kB / 470.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.108, allocations: 3.938 kB / 470.2 MB, free: 12.67 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0011/0.1091, allocations: 0.6725 MB / 470.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1091, allocations: 8.031 kB / 470.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.406e-05/0.1092, allocations: 90.7 kB / 470.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005534/0.1098, allocations: 88.22 kB / 471 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/0.1103, allocations: 400 kB / 471.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.1104, allocations: 29.38 kB / 471.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.1105, allocations: 51.92 kB / 471.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008475/0.1114, allocations: 0.6677 MB / 472.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.1114, allocations: 3.938 kB / 472.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.271e-05/0.1114, allocations: 19.98 kB / 472.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.1116, allocations: 48.97 kB / 472.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007033/0.1123, allocations: 491.5 kB / 472.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.1153, allocations: 3.167 MB / 475.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000428/0.1157, allocations: 245.3 kB / 476.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1159, allocations: 125.6 kB / 476.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.1159, allocations: 4 kB / 476.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.116, allocations: 34.56 kB / 476.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.116, allocations: 4 kB / 476.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001309/0.1173, allocations: 0.8837 MB / 477.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.1174, allocations: 85.05 kB / 477.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.1177, allocations: 332.4 kB / 477.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1177, allocations: 33.7 kB / 477.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.1179, allocations: 295.1 kB / 477.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.058e-05/0.118, allocations: 90.8 kB / 478 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.596e-05/0.118, allocations: 45.69 kB / 478 MB, free: 4.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1181, allocations: 346.8 kB / 478.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1183, allocations: 132.8 kB / 478.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.1187, allocations: 321.1 kB / 478.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/0.1192, allocations: 0.5002 MB / 479.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1192, allocations: 4 kB / 479.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001018/0.1203, allocations: 0.5886 MB / 479.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1203, allocations: 8 kB / 479.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005832/0.1209, allocations: 329.3 kB / 480.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004004/0.1213, allocations: 121.5 kB / 480.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1216, allocations: 79.89 kB / 480.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.124, allocations: 3.042 MB / 483.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.1242, allocations: 19.89 kB / 483.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.1243, allocations: 24 kB / 483.5 MB, free: 14.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.1245, allocations: 225.8 kB / 483.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-05/0.1246, allocations: 31.62 kB / 483.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004977/0.1251, allocations: 312.7 kB / 484.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.1251, allocations: 7.984 kB / 484.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1251, allocations: 0 / 484.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1251, allocations: 4 kB / 484.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.1261, allocations: 0.8043 MB / 484.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1261, allocations: 0 / 484.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.1265, allocations: 59.91 kB / 485 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1265, allocations: 3.984 kB / 485 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.1265, allocations: 8 kB / 485 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1265, allocations: 4 kB / 485 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1265, allocations: 4.062 kB / 485 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006012/0.1271, allocations: 0.5088 MB / 485.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1272, allocations: 120.8 kB / 485.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.1273, allocations: 8 kB / 485.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.1275, allocations: 15.98 kB / 485.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.1275, allocations: 19.92 kB / 485.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.1275, allocations: 8 kB / 485.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.1278, allocations: 223 kB / 485.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1278, allocations: 0 / 485.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004696/0.1283, allocations: 100 kB / 486 MB, free: 11.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008402/0.1291, allocations: 1.054 MB / 487 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008143/0.1299, allocations: 0.5759 MB / 487.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1299, allocations: 0 / 487.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.1301, allocations: 127.9 kB / 487.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.1307, allocations: 70.16 kB / 487.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00482/0.1355, allocations: 4.328 MB / 492.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.136, allocations: 0.8659 MB / 493 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002959/0.1363, allocations: 111.2 kB / 493.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.1365, allocations: 147.4 kB / 493.2 MB, free: 4.16 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1365, allocations: 4 kB / 493.2 MB, free: 4.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.1544, allocations: 7.125 MB / 0.4886 GB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002951/0.1548, allocations: 232.9 kB / 0.4889 GB, free: 12.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/1.928, allocations: 0 / 0.4889 GB, free: 12.96 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches