Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_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.0009047/0.0009046, allocations: 88.56 kB / 16.31 MB, free: 6.461 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.001049/0.001049, allocations: 179.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 205.4 MB / 223.4 MB, free: 5.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3137/0.3137, allocations: 38.05 MB / 309.7 MB, free: 8.867 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005075/0.0005077, allocations: 18.19 kB / 376.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 56.33 MB / 432.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.003825/0.1186, allocations: 3.214 MB / 436.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1205, allocations: 1.479 MB / 437.6 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1207, allocations: 11.94 kB / 437.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.1209, allocations: 39.69 kB / 437.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005435/0.1214, allocations: 223.1 kB / 437.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.1217, allocations: 99.75 kB / 438 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004452/0.1221, allocations: 442.7 kB / 438.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006044/0.1227, allocations: 319.1 kB / 438.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.123, allocations: 123.4 kB / 438.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.1232, allocations: 147.5 kB / 439 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1232, allocations: 8 kB / 439 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.1235, allocations: 179.5 kB / 439.2 MB, free: 456 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.1237, allocations: 95.75 kB / 439.3 MB, free: 360 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.62e-05/0.1237, allocations: 65.58 kB / 439.4 MB, free: 288 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.124, allocations: 247.4 kB / 439.6 MB, free: 40 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1241, allocations: 0 / 439.6 MB, free: 40 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1241, allocations: 0 / 439.6 MB, free: 40 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1241, allocations: 0 / 439.6 MB, free: 40 kB / 366.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.0007135/0.1248, allocations: 498.5 kB / 440.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1249, allocations: 12.03 kB / 440.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.375e-05/0.1249, allocations: 54.55 kB / 440.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008104/0.1257, allocations: 95.61 kB / 440.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.126, allocations: 254.5 kB / 440.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.1261, allocations: 15.98 kB / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.1261, allocations: 16 kB / 440.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.1266, allocations: 329.6 kB / 440.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1266, allocations: 0 / 440.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1266, allocations: 7.953 kB / 440.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.1267, allocations: 19.98 kB / 440.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.1271, allocations: 291.7 kB / 441.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.1286, allocations: 1.275 MB / 442.4 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.1291, allocations: 237 kB / 442.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1292, allocations: 97.73 kB / 442.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1292, allocations: 0 / 442.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.1293, allocations: 38.56 kB / 442.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.1293, allocations: 0 / 442.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008093/0.1301, allocations: 440.7 kB / 443.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.1302, allocations: 85.09 kB / 443.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.1304, allocations: 190.3 kB / 443.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1304, allocations: 33.69 kB / 443.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.1305, allocations: 155.8 kB / 443.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.1305, allocations: 63.22 kB / 443.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.1306, allocations: 8 kB / 443.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1307, allocations: 334.8 kB / 444.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.1308, allocations: 83.94 kB / 444.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.131, allocations: 152.5 kB / 444.3 MB, free: 11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.1311, allocations: 111.9 kB / 444.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1311, allocations: 3.984 kB / 444.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000378/0.1315, allocations: 293.1 kB / 444.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1315, allocations: 8 kB / 444.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1315, allocations: 0 / 444.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1316, allocations: 4 kB / 444.7 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.1318, allocations: 51.91 kB / 444.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.1318, allocations: 7.938 kB / 444.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1319, allocations: 15.98 kB / 444.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.132, allocations: 15.98 kB / 444.8 MB, free: 10.49 MB / 382.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.0001523/0.1321, allocations: 158 kB / 445 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.1322, allocations: 15.81 kB / 445 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003742/0.1326, allocations: 227.3 kB / 445.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1326, allocations: 4 kB / 445.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.1326, allocations: 0 / 445.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1326, allocations: 0 / 445.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.1338, allocations: 0.9554 MB / 446.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1338, allocations: 7.953 kB / 446.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.134, allocations: 39.91 kB / 446.2 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.134, allocations: 4 kB / 446.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.134, allocations: 12 kB / 446.2 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.134, allocations: 4 kB / 446.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.134, allocations: 8.438 kB / 446.2 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.1344, allocations: 417.1 kB / 446.6 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.1345, allocations: 104.9 kB / 446.7 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.1345, allocations: 8 kB / 446.8 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.1347, allocations: 11.98 kB / 446.8 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.1347, allocations: 19.88 kB / 446.8 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1348, allocations: 16 kB / 446.8 MB, free: 8.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1349, allocations: 155 kB / 447 MB, free: 8.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1349, allocations: 0 / 447 MB, free: 8.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.1353, allocations: 48 kB / 447 MB, free: 8.094 MB / 382.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.0006212/0.1359, allocations: 0.9443 MB / 447.9 MB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.1362, allocations: 216.1 kB / 448.2 MB, free: 6.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1362, allocations: 0 / 448.2 MB, free: 6.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.1364, allocations: 95.77 kB / 448.2 MB, free: 6.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.1368, allocations: 52.06 kB / 448.3 MB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.1387, allocations: 1.436 MB / 449.7 MB, free: 5.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.139, allocations: 0.7673 MB / 450.5 MB, free: 4.367 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1392, allocations: 53.48 kB / 450.6 MB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1393, allocations: 67.41 kB / 450.6 MB, free: 4.246 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1393, allocations: 4 kB / 450.6 MB, free: 4.242 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01526/0.1546, allocations: 3.681 MB / 454.3 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.1548, allocations: 191.1 kB / 454.5 MB, free: 316 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.839, allocations: 0 / 454.5 MB, free: 316 kB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) Environment - environmentSimulation: