Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.00124/0.00124, allocations: 111.8 kB / 16.63 MB, free: 6.953 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.001473/0.001473, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.324/1.324, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1751/0.1751, allocations: 38.03 MB / 329.4 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 58.42 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1077, allocations: 58.06 MB / 456.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.007758/0.1155, allocations: 5.352 MB / 461.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.1183, allocations: 1.523 MB / 463.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.1188, allocations: 27.81 kB / 463.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.1201, allocations: 394.5 kB / 463.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006698/0.1208, allocations: 207.1 kB / 463.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.1213, allocations: 163.7 kB / 464.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007011/0.122, allocations: 0.5489 MB / 464.7 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006129/0.1227, allocations: 373.8 kB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004767/0.1231, allocations: 247 kB / 465.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.1237, allocations: 287 kB / 465.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.321e-05/0.1237, allocations: 32 kB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.1241, allocations: 135.7 kB / 465.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.1243, allocations: 191.5 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.1245, allocations: 222.9 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000604/0.1251, allocations: 0.5217 MB / 466.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1252, allocations: 4 kB / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1252, allocations: 0 / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.1252, allocations: 0 / 466.6 MB, free: 14.09 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001127/0.1263, allocations: 0.7068 MB / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1264, allocations: 15.89 kB / 467.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.897e-05/0.1265, allocations: 78.72 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006956/0.1272, allocations: 84.31 kB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005947/0.1278, allocations: 400 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1278, allocations: 25.38 kB / 467.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.1279, allocations: 51.83 kB / 468 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.1286, allocations: 492.7 kB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1287, allocations: 3.938 kB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.1287, allocations: 12 kB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.1288, allocations: 28.98 kB / 468.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.1293, allocations: 343.7 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.1315, allocations: 1.629 MB / 470.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.1318, allocations: 173.1 kB / 470.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1319, allocations: 113.7 kB / 470.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.132, allocations: 4 kB / 470.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.132, allocations: 38.5 kB / 470.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.132, allocations: 0 / 470.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001261/0.1333, allocations: 0.7897 MB / 471.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.1333, allocations: 81.11 kB / 471.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002836/0.1336, allocations: 304.4 kB / 472 MB, free: 8.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.1337, allocations: 29.7 kB / 472 MB, free: 8.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1338, allocations: 259.5 kB / 472.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.1339, allocations: 63.02 kB / 472.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.909e-05/0.134, allocations: 61.69 kB / 472.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1341, allocations: 346.8 kB / 472.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.1343, allocations: 95.94 kB / 472.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1345, allocations: 200.5 kB / 473 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.1349, allocations: 331.4 kB / 473.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1349, allocations: 4 kB / 473.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007595/0.1357, allocations: 429.4 kB / 473.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1357, allocations: 8 kB / 473.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000462/0.1362, allocations: 267.2 kB / 474 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003294/0.1365, allocations: 80.77 kB / 474.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.1367, allocations: 63.91 kB / 474.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.1383, allocations: 1.723 MB / 475.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.1384, allocations: 16.05 kB / 475.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1385, allocations: 19.94 kB / 475.9 MB, free: 4.215 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 (34): * Single equations (assignments): 33 * 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.0001882/0.1387, allocations: 189.7 kB / 476.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.1387, allocations: 27.62 kB / 476.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004165/0.1392, allocations: 266.7 kB / 476.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1392, allocations: 4 kB / 476.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.1392, allocations: 0 / 476.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1392, allocations: 7.938 kB / 476.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.1402, allocations: 0.7382 MB / 477.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1402, allocations: 0 / 477.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.1405, allocations: 59.84 kB / 477.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1405, allocations: 3.938 kB / 477.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.1406, allocations: 8.047 kB / 477.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.1406, allocations: 8 kB / 477.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1406, allocations: 0 / 477.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/0.1411, allocations: 454.2 kB / 477.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.389e-05/0.1412, allocations: 112.9 kB / 477.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.1412, allocations: 12 kB / 477.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.1414, allocations: 7.984 kB / 477.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.881e-05/0.1414, allocations: 15.97 kB / 477.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.1414, allocations: 8 kB / 477.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1416, allocations: 211.1 kB / 478 MB, free: 1.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1416, allocations: 4 kB / 478 MB, free: 1.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.142, allocations: 84 kB / 478.1 MB, free: 1.898 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (23): * Single equations (assignments): 22 * 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.0007542/0.1428, allocations: 0.9911 MB / 479.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006559/0.1435, allocations: 402.4 kB / 479.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1435, allocations: 0 / 479.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1436, allocations: 110.9 kB / 479.6 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.1441, allocations: 64.22 kB / 479.6 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004216/0.1483, allocations: 3.703 MB / 483.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.1487, allocations: 0.8576 MB / 484.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.1489, allocations: 74.84 kB / 484.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.1491, allocations: 135.4 kB / 484.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1491, allocations: 0 / 484.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.244/1.393, allocations: 6.998 MB / 491.4 MB, free: 4.512 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/1.393, allocations: 241.2 kB / 491.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.54/3.934, allocations: 3.5 kB / 491.7 MB, free: 4.254 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches