Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001532/0.001536, allocations: 187.4 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 94.86 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2685/0.2685, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.0004741, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1091, allocations: 56.34 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005233/0.1144, allocations: 3.136 MB / 482.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003204/0.1176, allocations: 1.448 MB / 483.7 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.1179, allocations: 11.94 kB / 483.7 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.1181, allocations: 31.77 kB / 483.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000802/0.1189, allocations: 175.4 kB / 483.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.1194, allocations: 103.7 kB / 484 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.1198, allocations: 163.6 kB / 484.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008721/0.1207, allocations: 315.1 kB / 484.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.121, allocations: 99.59 kB / 484.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.1212, allocations: 79.73 kB / 484.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.1213, allocations: 8 kB / 484.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005762/0.1218, allocations: 167.7 kB / 484.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.122, allocations: 79.8 kB / 484.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1221, allocations: 69.56 kB / 485 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.1227, allocations: 255.4 kB / 485.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1227, allocations: 0 / 485.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1227, allocations: 0 / 485.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.1227, allocations: 0 / 485.2 MB, free: 11.78 MB / 330.7 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.0008547/0.1236, allocations: 478.6 kB / 485.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.1236, allocations: 15.97 kB / 485.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.056e-05/0.1237, allocations: 54.53 kB / 485.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/0.1251, allocations: 111.6 kB / 485.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.1256, allocations: 258.4 kB / 486.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.1256, allocations: 12 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.54e-05/0.1257, allocations: 20 kB / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007665/0.1265, allocations: 313.6 kB / 486.5 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1265, allocations: 8 kB / 486.5 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.1266, allocations: 7.984 kB / 486.5 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.088e-05/0.1266, allocations: 23.94 kB / 486.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007352/0.1274, allocations: 291.6 kB / 486.8 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.1302, allocations: 1.272 MB / 488.1 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007376/0.131, allocations: 241 kB / 488.3 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.1311, allocations: 8.047 kB / 488.3 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.1311, allocations: 30.56 kB / 488.3 MB, free: 8.438 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 3.046e-06/0.1312, allocations: 0 / 488.3 MB, free: 8.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.001331/0.1325, allocations: 440.5 kB / 488.8 MB, free: 8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.1326, allocations: 81.11 kB / 488.9 MB, free: 7.902 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.1329, allocations: 202.2 kB / 489.1 MB, free: 7.691 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1329, allocations: 29.7 kB / 489.1 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1331, allocations: 222.2 kB / 489.3 MB, free: 7.438 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/0.1332, allocations: 59.19 kB / 489.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.1332, allocations: 0 / 489.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1334, allocations: 322.8 kB / 489.7 MB, free: 7.055 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.1336, allocations: 87.95 kB / 489.8 MB, free: 6.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.1339, allocations: 157.4 kB / 489.9 MB, free: 6.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.1343, allocations: 116 kB / 490 MB, free: 6.672 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1343, allocations: 3.953 kB / 490 MB, free: 6.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007079/0.135, allocations: 277.2 kB / 490.3 MB, free: 6.391 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.135, allocations: 8.281 kB / 490.3 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1351, allocations: 4 kB / 490.3 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.1351, allocations: 4 kB / 490.3 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.1356, allocations: 55.91 kB / 490.4 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.1356, allocations: 11.92 kB / 490.4 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.1359, allocations: 15.98 kB / 490.4 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.1359, allocations: 8 kB / 490.4 MB, free: 6.285 MB / 330.7 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.0002575/0.1362, allocations: 149.8 kB / 490.6 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.469e-05/0.1363, allocations: 27.75 kB / 490.6 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000617/0.1369, allocations: 226.3 kB / 490.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1369, allocations: 7.938 kB / 490.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1369, allocations: 0 / 490.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1369, allocations: 0 / 490.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.1391, allocations: 0.952 MB / 491.8 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.1392, allocations: 4 kB / 491.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002823/0.1395, allocations: 39.91 kB / 491.8 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.1395, allocations: 8 kB / 491.8 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.1395, allocations: 7.953 kB / 491.8 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.327e-06/0.1396, allocations: 4 kB / 491.8 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/0.1396, allocations: 7.938 kB / 491.8 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008528/0.1404, allocations: 0.5979 MB / 492.4 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1406, allocations: 108.8 kB / 492.5 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.1406, allocations: 4 kB / 492.5 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.1409, allocations: 15.98 kB / 492.6 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.198e-05/0.141, allocations: 19.88 kB / 492.6 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/0.141, allocations: 20 kB / 492.6 MB, free: 3.801 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002042/0.1412, allocations: 147 kB / 492.7 MB, free: 3.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1413, allocations: 0 / 492.7 MB, free: 3.656 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005361/0.1418, allocations: 48 kB / 492.8 MB, free: 3.609 MB / 330.7 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.001613/0.1434, allocations: 2.235 MB / 495 MB, free: 1.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005926/0.1441, allocations: 213.5 kB / 495.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1441, allocations: 0 / 495.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002872/0.1444, allocations: 100.8 kB / 495.3 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.1449, allocations: 47.86 kB / 495.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.1487, allocations: 2.808 MB / 498.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.1492, allocations: 0.7635 MB / 498.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.1494, allocations: 71.41 kB / 499 MB, free: 13.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.363e-06/0.1494, allocations: 0 / 499 MB, free: 13.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.386/2.536, allocations: 3.618 MB / 0.4909 GB, free: 9.449 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)