Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001207/0.001207, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001222/0.001222, allocations: 195.1 kB / 17.42 MB, free: 6.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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1641/0.1641, allocations: 38.03 MB / 329.3 MB, free: 9.082 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 62.91 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09625, allocations: 58.06 MB / 456.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.006096/0.1024, allocations: 5.224 MB / 461.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.105, allocations: 1.659 MB / 463.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.1053, allocations: 27.81 kB / 463.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008836/0.1062, allocations: 364.8 kB / 463.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004279/0.1066, allocations: 219 kB / 463.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005323/0.1071, allocations: 223.6 kB / 464 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007717/0.1079, allocations: 0.8381 MB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004776/0.1084, allocations: 334.3 kB / 465.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002799/0.1087, allocations: 219 kB / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004044/0.1091, allocations: 334.9 kB / 465.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.1092, allocations: 28 kB / 465.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.1095, allocations: 143.7 kB / 465.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.1097, allocations: 211.5 kB / 466 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.1099, allocations: 234.7 kB / 466.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.1104, allocations: 0.5762 MB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1104, allocations: 4 kB / 466.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1104, allocations: 0 / 466.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1104, allocations: 0 / 466.8 MB, free: 13.81 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00125/0.1117, allocations: 0.7698 MB / 467.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1117, allocations: 12.03 kB / 467.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.851e-05/0.1118, allocations: 90.64 kB / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005987/0.1124, allocations: 88.31 kB / 467.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000569/0.113, allocations: 396.1 kB / 468.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.1131, allocations: 33.31 kB / 468.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.1132, allocations: 55.92 kB / 468.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000812/0.114, allocations: 0.645 MB / 468.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.114, allocations: 8 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.1141, allocations: 20 kB / 468.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.1142, allocations: 28.98 kB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007772/0.115, allocations: 479.5 kB / 469.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003232/0.1182, allocations: 3.034 MB / 472.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.1185, allocations: 183.8 kB / 472.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.1187, allocations: 101.7 kB / 472.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.1187, allocations: 11.97 kB / 472.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1188, allocations: 38.5 kB / 472.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.1188, allocations: 0 / 472.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001289/0.1201, allocations: 0.8344 MB / 473.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.1201, allocations: 85.06 kB / 473.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.1204, allocations: 357.4 kB / 474.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.1205, allocations: 25.7 kB / 474.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1207, allocations: 303 kB / 474.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.333e-05/0.1207, allocations: 78.89 kB / 474.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.1209, allocations: 86.03 kB / 474.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.121, allocations: 354.8 kB / 474.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1212, allocations: 120.8 kB / 475 MB, free: 5.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.1215, allocations: 334.8 kB / 475.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.122, allocations: 0.4891 MB / 475.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.122, allocations: 3.938 kB / 475.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009176/0.123, allocations: 0.5605 MB / 476.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.123, allocations: 8 kB / 476.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000475/0.1235, allocations: 279.9 kB / 476.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003398/0.1238, allocations: 80.78 kB / 476.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.1241, allocations: 95.81 kB / 476.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.1258, allocations: 1.593 MB / 478.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.126, allocations: 23.89 kB / 478.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1261, allocations: 24 kB / 478.5 MB, free: 1.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002335/0.1263, allocations: 217.6 kB / 478.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.885e-05/0.1264, allocations: 35.62 kB / 478.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000558/0.1269, allocations: 292.6 kB / 479 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.1269, allocations: 4 kB / 479 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.1269, allocations: 0 / 479 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.127, allocations: 4 kB / 479 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1281, allocations: 0.7913 MB / 479.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.1281, allocations: 8 kB / 479.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.1284, allocations: 55.84 kB / 479.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1284, allocations: 4 kB / 479.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.1285, allocations: 4 kB / 479.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1285, allocations: 8.047 kB / 479.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1285, allocations: 4 kB / 479.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005496/0.129, allocations: 477.2 kB / 480.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/0.1291, allocations: 104.8 kB / 480.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.1292, allocations: 11.94 kB / 480.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.1293, allocations: 11.98 kB / 480.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-05/0.1294, allocations: 19.92 kB / 480.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1294, allocations: 8 kB / 480.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002088/0.1296, allocations: 235.2 kB / 480.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1296, allocations: 0 / 480.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.1301, allocations: 92 kB / 480.8 MB, free: 14.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (24): * Single equations (assignments): 23 * 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.0008121/0.1309, allocations: 1.02 MB / 481.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007416/0.1316, allocations: 439.3 kB / 482.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1316, allocations: 0 / 482.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.1318, allocations: 119 kB / 482.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.1323, allocations: 58.47 kB / 482.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.1369, allocations: 4.18 MB / 486.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.1374, allocations: 0.8737 MB / 487.5 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000299/0.1377, allocations: 111.2 kB / 487.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.1379, allocations: 143.4 kB / 487.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1379, allocations: 0 / 487.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.168, allocations: 7.03 MB / 494.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/0.1683, allocations: 225 kB / 495 MB, free: 484 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.939, allocations: 4.062 kB / 495 MB, free: 480 kB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Impedance.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches