Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001068/0.001068, allocations: 102.1 kB / 16.62 MB, free: 6.809 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.001221/0.001221, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.332/1.332, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1711/0.1711, allocations: 38.03 MB / 329.4 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 70.64 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09819, allocations: 58.08 MB / 456.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006845/0.1051, allocations: 5.041 MB / 461.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.1081, allocations: 1.706 MB / 463.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.1084, allocations: 27.81 kB / 463.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008293/0.1093, allocations: 269.8 kB / 463.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006131/0.1099, allocations: 263 kB / 463.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.1106, allocations: 215.6 kB / 464 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.1112, allocations: 0.6157 MB / 464.6 MB, free: 140 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.1117, allocations: 239.9 kB / 464.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.112, allocations: 266.8 kB / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005179/0.1126, allocations: 394.9 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.1126, allocations: 40 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004236/0.1131, allocations: 235.6 kB / 465.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.1133, allocations: 227.4 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.1136, allocations: 262.7 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006838/0.1143, allocations: 0.6581 MB / 466.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1143, allocations: 0 / 466.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1143, allocations: 0 / 466.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.1143, allocations: 4 kB / 466.9 MB, free: 13.84 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001359/0.1157, allocations: 0.7699 MB / 467.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1157, allocations: 19.88 kB / 467.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.1158, allocations: 82.7 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006178/0.1165, allocations: 92.2 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.1171, allocations: 403.2 kB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.1171, allocations: 33.36 kB / 468.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.1173, allocations: 47.92 kB / 468.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009984/0.1183, allocations: 0.6953 MB / 469 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.1183, allocations: 7.984 kB / 469 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.1184, allocations: 16 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001985/0.1186, allocations: 60.95 kB / 469.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008954/0.1195, allocations: 0.6752 MB / 469.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/0.1228, allocations: 2.65 MB / 472.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.1233, allocations: 317.3 kB / 472.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.1236, allocations: 209.7 kB / 472.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.1237, allocations: 7.984 kB / 472.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1237, allocations: 30.56 kB / 473 MB, free: 7.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.585e-06/0.1237, allocations: 0 / 473 MB, free: 7.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002092/0.1258, allocations: 1.303 MB / 474.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.1259, allocations: 81.11 kB / 474.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.1262, allocations: 291.2 kB / 474.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.1262, allocations: 29.7 kB / 474.7 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.1264, allocations: 247.6 kB / 474.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1265, allocations: 141.9 kB / 475 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.1267, allocations: 90.06 kB / 475.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1268, allocations: 354.8 kB / 475.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.1271, allocations: 188.9 kB / 475.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.1274, allocations: 321.3 kB / 476 MB, free: 4.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006443/0.1281, allocations: 0.5622 MB / 476.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1281, allocations: 0 / 476.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001189/0.1293, allocations: 0.6816 MB / 477.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.1293, allocations: 8 kB / 477.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008138/0.1301, allocations: 496 kB / 477.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004378/0.1306, allocations: 109.6 kB / 477.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.1309, allocations: 75.89 kB / 477.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00284/0.1337, allocations: 3.27 MB / 481.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.134, allocations: 31.94 kB / 481.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.134, allocations: 16 kB / 481.2 MB, free: 14.65 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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.0002657/0.1343, allocations: 205.7 kB / 481.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.604e-05/0.1344, allocations: 35.61 kB / 481.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000716/0.1351, allocations: 472.6 kB / 481.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.1351, allocations: 12 kB / 481.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1352, allocations: 7.938 kB / 481.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.1352, allocations: 8.125 kB / 481.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.1365, allocations: 1.005 MB / 482.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1366, allocations: 3.984 kB / 482.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.1369, allocations: 63.89 kB / 483 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1369, allocations: 7.938 kB / 483 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.137, allocations: 12.06 kB / 483 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.137, allocations: 3.984 kB / 483 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.137, allocations: 4 kB / 483 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008745/0.1379, allocations: 0.7473 MB / 483.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.138, allocations: 136.7 kB / 483.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.1381, allocations: 15.94 kB / 483.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.1383, allocations: 19.97 kB / 483.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.1383, allocations: 15.98 kB / 484 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.1383, allocations: 11.98 kB / 484 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.1385, allocations: 199.1 kB / 484.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1385, allocations: 0 / 484.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.139, allocations: 116 kB / 484.3 MB, free: 11.44 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001257/0.1403, allocations: 1.323 MB / 485.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.1415, allocations: 0.7982 MB / 486.4 MB, free: 9.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1415, allocations: 0 / 486.4 MB, free: 9.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.1418, allocations: 208.9 kB / 486.6 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.1423, allocations: 72.73 kB / 486.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005498/0.1478, allocations: 4.559 MB / 491.2 MB, free: 4.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.1483, allocations: 0.8704 MB / 492.1 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003188/0.1486, allocations: 115.2 kB / 492.2 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.1488, allocations: 139.4 kB / 492.4 MB, free: 3.07 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1488, allocations: 0 / 492.4 MB, free: 3.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/0.1911, allocations: 7.889 MB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/0.1914, allocations: 234.1 kB / 0.4887 GB, free: 11.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.138, allocations: 0 / 0.4887 GB, free: 11.08 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches