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.001142/0.001142, allocations: 109.3 kB / 17.06 MB, free: 5.828 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.001287/0.001287, allocations: 198.9 kB / 18 MB, free: 4.949 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.303/1.303, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1683/0.1683, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001412/0.001412, allocations: 59.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09134, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004421/0.09579, allocations: 3.473 MB / 490.1 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.09782, allocations: 1.544 MB / 491.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.098, allocations: 7.938 kB / 491.6 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008116/0.09885, allocations: 263 kB / 491.9 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006284/0.09949, allocations: 274.9 kB / 492.1 MB, free: 3.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.09981, allocations: 127.6 kB / 492.3 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.1002, allocations: 335 kB / 492.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002858/0.1005, allocations: 130.5 kB / 492.7 MB, free: 2.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.1008, allocations: 159.3 kB / 492.9 MB, free: 2.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.1011, allocations: 159.5 kB / 493 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.1012, allocations: 16 kB / 493.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005311/0.1017, allocations: 331.2 kB / 493.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.1018, allocations: 95.75 kB / 493.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.102, allocations: 111.4 kB / 493.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005351/0.1025, allocations: 355.3 kB / 493.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1025, allocations: 0 / 493.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1025, allocations: 3.938 kB / 493.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.1026, allocations: 0 / 493.9 MB, free: 1.473 MB / 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.0007413/0.1033, allocations: 0.5297 MB / 494.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1034, allocations: 11.89 kB / 494.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.572e-05/0.1034, allocations: 50.73 kB / 494.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008888/0.1043, allocations: 88.64 kB / 494.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.1046, allocations: 275.8 kB / 494.9 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.1047, allocations: 16.38 kB / 494.9 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.1047, allocations: 16.38 kB / 494.9 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.1052, allocations: 329.4 kB / 495.2 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1052, allocations: 0 / 495.2 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.1052, allocations: 8 kB / 495.2 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/0.1052, allocations: 23.98 kB / 495.3 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.1057, allocations: 291.7 kB / 495.5 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.1073, allocations: 1.26 MB / 496.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.1077, allocations: 225.1 kB / 497 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1078, allocations: 101.7 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1079, allocations: 8 kB / 497.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1079, allocations: 34.56 kB / 497.2 MB, free: 14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/0.1079, allocations: 0 / 497.2 MB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008071/0.1087, allocations: 440.4 kB / 497.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.1088, allocations: 81.11 kB / 497.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.109, allocations: 202.6 kB / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.109, allocations: 25.7 kB / 497.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.833e-05/0.1091, allocations: 160 kB / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/0.1092, allocations: 63.17 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.1092, allocations: 45.7 kB / 498.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1094, allocations: 326.8 kB / 498.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.1095, allocations: 91.88 kB / 498.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.1097, allocations: 161.7 kB / 498.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.11, allocations: 268.2 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.11, allocations: 3.938 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004029/0.1104, allocations: 289.5 kB / 499.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1105, allocations: 8 kB / 499.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1105, allocations: 11.88 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1105, allocations: 4 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.1107, allocations: 47.97 kB / 499.3 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.1107, allocations: 7.938 kB / 499.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.1109, allocations: 11.98 kB / 499.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.1109, allocations: 15.97 kB / 499.4 MB, free: 11.65 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001342/0.1111, allocations: 161.6 kB / 499.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.1111, allocations: 23.72 kB / 499.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003492/0.1115, allocations: 231.4 kB / 499.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1115, allocations: 4 kB / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1115, allocations: 4 kB / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1115, allocations: 0 / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.1127, allocations: 0.9517 MB / 0.489 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-06/0.1127, allocations: 4 kB / 0.489 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.1129, allocations: 39.91 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1129, allocations: 4 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1129, allocations: 11.94 kB / 0.4891 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.1129, allocations: 7.938 kB / 0.4891 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.113, allocations: 4 kB / 0.4891 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003985/0.1134, allocations: 417.1 kB / 0.4895 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.467e-05/0.1134, allocations: 92.92 kB / 0.4896 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.1135, allocations: 15.94 kB / 0.4896 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.1137, allocations: 11.98 kB / 0.4896 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.1137, allocations: 27.86 kB / 0.4896 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.1137, allocations: 8 kB / 0.4896 GB, free: 9.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.1139, allocations: 151 kB / 0.4898 GB, free: 9.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1139, allocations: 0 / 0.4898 GB, free: 9.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.1143, allocations: 60 kB / 0.4898 GB, free: 9.242 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 (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.0008008/0.1151, allocations: 0.9484 MB / 0.4908 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.1155, allocations: 227.6 kB / 0.491 GB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1155, allocations: 0.5625 kB / 0.491 GB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.1157, allocations: 99.77 kB / 0.4911 GB, free: 7.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.1161, allocations: 52.36 kB / 0.4911 GB, free: 7.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.1191, allocations: 2.687 MB / 0.4937 GB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1195, allocations: 0.7671 MB / 0.4945 GB, free: 4.129 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.1196, allocations: 49.5 kB / 0.4945 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.1198, allocations: 67.34 kB / 0.4946 GB, free: 4.012 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1198, allocations: 4 kB / 0.4946 GB, free: 4.008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.1401, allocations: 4.164 MB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.525, allocations: 7.938 kB / 0.4987 GB, free: 15.79 MB / 398.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/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)