Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.0008678/0.0008676, allocations: 85.44 kB / 16.31 MB, free: 6.457 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.0008659/0.0008661, allocations: 182.6 kB / 17.21 MB, free: 6.324 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.38/1.38, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1865/0.1865, allocations: 38.1 MB / 330.4 MB, free: 8.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 12.88 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1181, allocations: 59.17 MB / 459.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004726/0.1229, allocations: 3.194 MB / 462.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1253, allocations: 1.443 MB / 464 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.1256, allocations: 11.94 kB / 464 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.1258, allocations: 39.69 kB / 464 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007272/0.1266, allocations: 223.1 kB / 464.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.1269, allocations: 99.75 kB / 464.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005812/0.1275, allocations: 442.7 kB / 464.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008778/0.1284, allocations: 315.1 kB / 465.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.1287, allocations: 119.4 kB / 465.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.129, allocations: 151.5 kB / 465.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.1291, allocations: 8 kB / 465.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004857/0.1296, allocations: 179.5 kB / 465.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.1297, allocations: 91.75 kB / 465.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1298, allocations: 65.58 kB / 465.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004139/0.1303, allocations: 251.4 kB / 465.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.441e-05/0.1303, allocations: 4 kB / 465.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1303, allocations: 0 / 465.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1303, allocations: 0 / 465.9 MB, free: 0.6562 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009869/0.1313, allocations: 486.5 kB / 466.4 MB, free: 136 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.1314, allocations: 12.03 kB / 466.4 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.227e-05/0.1315, allocations: 50.53 kB / 466.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009779/0.1324, allocations: 95.61 kB / 466.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1329, allocations: 267.4 kB / 466.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.1329, allocations: 19.89 kB / 466.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.133, allocations: 16 kB / 466.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.1336, allocations: 317.6 kB / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1336, allocations: 0 / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.1336, allocations: 12 kB / 467.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/0.1337, allocations: 19.98 kB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.1342, allocations: 287.8 kB / 467.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.1362, allocations: 1.26 MB / 468.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.1367, allocations: 237 kB / 469 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.1369, allocations: 93.73 kB / 469.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.137, allocations: 3.984 kB / 469.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.137, allocations: 38.56 kB / 469.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.137, allocations: 0 / 469.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001058/0.1381, allocations: 447.8 kB / 469.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.1382, allocations: 92.98 kB / 469.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.1385, allocations: 198.2 kB / 469.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1385, allocations: 25.7 kB / 469.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.1387, allocations: 159.8 kB / 470 MB, free: 12.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.1388, allocations: 59.19 kB / 470.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.1388, allocations: 8 kB / 470.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.139, allocations: 330.8 kB / 470.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1392, allocations: 88.08 kB / 470.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1394, allocations: 146.2 kB / 470.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.1396, allocations: 119.9 kB / 470.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1396, allocations: 0 / 470.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004541/0.14, allocations: 289.4 kB / 471 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.1401, allocations: 14.03 kB / 471 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1401, allocations: 0 / 471 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.1401, allocations: 4 kB / 471 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.1404, allocations: 55.86 kB / 471.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.1404, allocations: 7.938 kB / 471.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.1405, allocations: 15.98 kB / 471.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.1406, allocations: 11.98 kB / 471.1 MB, free: 11.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.1407, allocations: 149.8 kB / 471.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.1408, allocations: 19.75 kB / 471.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004102/0.1412, allocations: 231.3 kB / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1412, allocations: 4 kB / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1412, allocations: 3.953 kB / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1412, allocations: 0 / 471.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.1427, allocations: 0.948 MB / 472.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1427, allocations: 4 kB / 472.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.1428, allocations: 39.91 kB / 472.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.1429, allocations: 4 kB / 472.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1429, allocations: 8 kB / 472.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.1429, allocations: 4 kB / 472.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.1429, allocations: 7.938 kB / 472.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.1433, allocations: 427.4 kB / 473 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.1434, allocations: 100.8 kB / 473.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.1435, allocations: 19.92 kB / 473.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.1436, allocations: 8 kB / 473.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.1437, allocations: 27.88 kB / 473.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.1437, allocations: 8 kB / 473.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.1438, allocations: 155 kB / 473.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1438, allocations: 0 / 473.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.1442, allocations: 52 kB / 473.3 MB, free: 8.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008041/0.145, allocations: 0.948 MB / 474.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.1454, allocations: 211.7 kB / 474.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1454, allocations: 0 / 474.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.1456, allocations: 100.5 kB / 474.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005/0.1461, allocations: 36.16 kB / 474.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.1486, allocations: 1.428 MB / 476 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.149, allocations: 0.7674 MB / 476.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.1492, allocations: 53.48 kB / 476.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.1494, allocations: 63.41 kB / 476.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of SimCode: time 1.793e-06/0.1494, allocations: 0 / 476.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.166, allocations: 3.693 MB / 480.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002639/0.1663, allocations: 199.4 kB / 480.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/1.969, allocations: 64 / 480.8 MB, free: 1.102 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat does not exist to compare? outputFormat=mat