Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001444/0.001444, allocations: 104.4 kB / 16.92 MB, free: 5.793 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.001687/0.001687, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.416/1.416, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1976/0.1976, allocations: 38.03 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 64.81 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.118, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.006888/0.1249, allocations: 4.323 MB / 461.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.1268, allocations: 0.9466 MB / 462.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/0.1271, allocations: 11.94 kB / 462.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.1274, allocations: 55.5 kB / 462.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008344/0.1283, allocations: 246.8 kB / 462.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1286, allocations: 99.8 kB / 462.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006181/0.1292, allocations: 0.4944 MB / 463.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.1295, allocations: 143.9 kB / 463.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.1299, allocations: 223 kB / 463.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.1305, allocations: 267.1 kB / 463.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.1306, allocations: 20 kB / 463.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.71e-05/0.1307, allocations: 24 kB / 463.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.1309, allocations: 147.6 kB / 464 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/0.1311, allocations: 179.1 kB / 464.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.1315, allocations: 358.7 kB / 464.5 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1315, allocations: 4 kB / 464.5 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1315, allocations: 0 / 464.5 MB, free: 432 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.1316, allocations: 0 / 464.5 MB, free: 432 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001434/0.133, allocations: 0.6594 MB / 465.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.1331, allocations: 11.89 kB / 465.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.42e-05/0.1332, allocations: 66.72 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.486e-05/0.1333, allocations: 40.45 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.1339, allocations: 359.8 kB / 465.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1339, allocations: 24.5 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.134, allocations: 24 kB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005706/0.1345, allocations: 352.7 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1346, allocations: 0 / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1346, allocations: 11.98 kB / 466 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.1347, allocations: 32.53 kB / 466 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.1351, allocations: 242 kB / 466.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.1368, allocations: 1.37 MB / 467.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003683/0.1372, allocations: 173 kB / 467.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.1374, allocations: 97.73 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1375, allocations: 11.98 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.1375, allocations: 30.56 kB / 468 MB, free: 12.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.1375, allocations: 0 / 468 MB, free: 12.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00151/0.139, allocations: 0.7628 MB / 468.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.83e-05/0.1391, allocations: 81.05 kB / 468.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.1394, allocations: 300.4 kB / 469.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1395, allocations: 29.7 kB / 469.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.1396, allocations: 215.6 kB / 469.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.518e-05/0.1397, allocations: 55.25 kB / 469.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-05/0.1398, allocations: 61.72 kB / 469.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1399, allocations: 338.8 kB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1401, allocations: 67.95 kB / 469.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.1402, allocations: 172.8 kB / 470 MB, free: 10.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.1406, allocations: 260.6 kB / 470.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1406, allocations: 0 / 470.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005017/0.1411, allocations: 313.8 kB / 470.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1411, allocations: 6.938 kB / 470.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1411, allocations: 11.98 kB / 470.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/0.1413, allocations: 52.81 kB / 470.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.1415, allocations: 47.92 kB / 470.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.143, allocations: 1.613 MB / 472.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1432, allocations: 8 kB / 472.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.1432, allocations: 11.98 kB / 472.3 MB, free: 7.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (28): * Single equations (assignments): 27 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002261/0.1434, allocations: 181.7 kB / 472.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.1435, allocations: 31.62 kB / 472.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004503/0.144, allocations: 232.3 kB / 472.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.144, allocations: 4 kB / 472.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.144, allocations: 0 / 472.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.144, allocations: 3.984 kB / 472.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008557/0.1449, allocations: 0.6396 MB / 473.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.1449, allocations: 4 kB / 473.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.145, allocations: 23.92 kB / 473.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.1452, allocations: 56.8 kB / 473.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.1452, allocations: 4 kB / 473.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.1465, allocations: 1.609 MB / 475.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.1465, allocations: 4.031 kB / 475.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.147, allocations: 405.3 kB / 475.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.1471, allocations: 108.8 kB / 475.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.1471, allocations: 4.125 kB / 475.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.1473, allocations: 15.94 kB / 475.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.1473, allocations: 11.97 kB / 475.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1473, allocations: 7.984 kB / 475.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.1475, allocations: 211.1 kB / 475.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1475, allocations: 0 / 475.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000359/0.1479, allocations: 68 kB / 475.9 MB, free: 4.102 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.1489, allocations: 0.9332 MB / 476.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005834/0.1495, allocations: 323.1 kB / 477.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1495, allocations: 7.938 kB / 477.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003484/0.1499, allocations: 202.6 kB / 477.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.1504, allocations: 65.89 kB / 477.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.1542, allocations: 3.045 MB / 480.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.1547, allocations: 0.8104 MB / 481.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001673/0.1548, allocations: 46.94 kB / 481.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.155, allocations: 95.41 kB / 481.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.155, allocations: 0 / 481.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03612/0.1911, allocations: 5.972 MB / 487.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.492/9.683, allocations: 11.75 kB / 487.4 MB, free: 8.465 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches