Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.0008817/0.0008819, allocations: 88.31 kB / 16.31 MB, free: 5.914 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.0008914/0.0008915, allocations: 175.4 kB / 17.2 MB, free: 5.859 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.455/1.455, allocations: 223.2 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1778/0.1778, allocations: 38.09 MB / 330.4 MB, free: 8.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 8 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1201, allocations: 59.18 MB / 459.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.0056/0.1257, allocations: 5.086 MB / 464.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.1283, allocations: 1.477 MB / 465.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002948/0.1286, allocations: 31.75 kB / 465.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003647/0.129, allocations: 119.1 kB / 466 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006772/0.1297, allocations: 366.3 kB / 466.4 MB, free: 208 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.1301, allocations: 171.7 kB / 466.6 MB, free: 36 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009119/0.131, allocations: 0.8491 MB / 467.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.1312, allocations: 118.2 kB / 467.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.1316, allocations: 270.8 kB / 467.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005768/0.1322, allocations: 426.8 kB / 468.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.193e-05/0.1323, allocations: 28 kB / 468.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.919e-05/0.1324, allocations: 24 kB / 468.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.1326, allocations: 227.4 kB / 468.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1327, allocations: 113.5 kB / 468.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.1332, allocations: 474.9 kB / 469.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1332, allocations: 0 / 469.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1332, allocations: 0 / 469.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1332, allocations: 0 / 469.1 MB, free: 13.53 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001692/0.1349, allocations: 0.8698 MB / 469.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1349, allocations: 8.031 kB / 469.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.1351, allocations: 70.53 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.97e-05/0.1352, allocations: 47.44 kB / 470.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1362, allocations: 0.5832 MB / 470.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.1362, allocations: 28.66 kB / 470.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1363, allocations: 43.91 kB / 470.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000769/0.1371, allocations: 0.5517 MB / 471.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1371, allocations: 0 / 471.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.1372, allocations: 12 kB / 471.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003262/0.1375, allocations: 80.53 kB / 471.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005254/0.1381, allocations: 362.3 kB / 471.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.1409, allocations: 2.055 MB / 473.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000787/0.1417, allocations: 381.2 kB / 474.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005174/0.1422, allocations: 313.5 kB / 474.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.1422, allocations: 4 kB / 474.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1423, allocations: 38.56 kB / 474.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.943e-06/0.1423, allocations: 0 / 474.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004482/0.1468, allocations: 2.545 MB / 477 MB, free: 5.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.1469, allocations: 85.23 kB / 477.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.1473, allocations: 373.7 kB / 477.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.1474, allocations: 33.7 kB / 477.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.1476, allocations: 248.2 kB / 477.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.1477, allocations: 138.1 kB / 477.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.1477, allocations: 12 kB / 477.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1479, allocations: 354.8 kB / 478.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.1483, allocations: 245 kB / 478.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000465/0.1488, allocations: 362.7 kB / 478.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/0.1492, allocations: 289.5 kB / 479.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1493, allocations: 0 / 479.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001632/0.1509, allocations: 1.018 MB / 480.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.1509, allocations: 8 kB / 480.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1509, allocations: 4 kB / 480.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009861/0.1519, allocations: 413.3 kB / 480.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.1522, allocations: 87.83 kB / 480.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006193/0.1585, allocations: 4.715 MB / 485.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004704/0.159, allocations: 39.95 kB / 485.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.159, allocations: 23.98 kB / 485.4 MB, free: 12.33 MB / 366.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003659/0.1594, allocations: 201.7 kB / 485.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.143e-05/0.1595, allocations: 51.45 kB / 485.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.161, allocations: 0.8391 MB / 486.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1611, allocations: 4 kB / 486.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1611, allocations: 4 kB / 486.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1611, allocations: 0 / 486.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.1633, allocations: 1.418 MB / 487.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1633, allocations: 128 / 487.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.1635, allocations: 39.92 kB / 488 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.1647, allocations: 449.3 kB / 488.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-05/0.1648, allocations: 35.97 kB / 488.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005846/0.1706, allocations: 6.245 MB / 494.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.1707, allocations: 4.031 kB / 494.7 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.1725, allocations: 1.129 MB / 495.8 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.1726, allocations: 112.5 kB / 495.9 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.345e-05/0.1727, allocations: 27.98 kB / 496 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.173, allocations: 39.94 kB / 496 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/0.1731, allocations: 35.94 kB / 496 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.1731, allocations: 11.98 kB / 496 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000308/0.1734, allocations: 263.2 kB / 496.3 MB, free: 0.707 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1734, allocations: 0 / 496.3 MB, free: 0.707 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007067/0.1741, allocations: 156 kB / 496.4 MB, free: 0.5547 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001966/0.1761, allocations: 1.695 MB / 498.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1777, allocations: 0.8843 MB / 499 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.1777, allocations: 0 / 499 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.1791, allocations: 1.083 MB / 0.4884 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.1797, allocations: 117.5 kB / 0.4885 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006315/0.1861, allocations: 4.681 MB / 0.4931 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.1865, allocations: 0.8859 MB / 0.4939 GB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.1868, allocations: 76.33 kB / 0.494 GB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.187, allocations: 155.4 kB / 0.4942 GB, free: 6.652 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.187, allocations: 0 / 0.4942 GB, free: 6.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2418/0.4288, allocations: 11.78 MB / 0.5057 GB, free: 54.94 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/0.429, allocations: 216.7 kB / 0.5059 GB, free: 54.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.537, allocations: 3.25 kB / 0.5059 GB, free: 54.7 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat does not exist to compare? outputFormat=mat