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.00102/0.00102, allocations: 96.36 kB / 16.3 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.0009927/0.0009927, allocations: 173.7 kB / 17.19 MB, free: 6.348 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.58/1.58, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1784/0.1784, allocations: 38.04 MB / 309.7 MB, free: 6.133 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.0008848/0.0008851, allocations: 16 kB / 376.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2904, allocations: 56.31 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.002959/0.2934, allocations: 3.14 MB / 436 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.2949, allocations: 1.444 MB / 437.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2951, allocations: 11.94 kB / 437.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2952, allocations: 39.75 kB / 437.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004305/0.2957, allocations: 175.4 kB / 437.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.2959, allocations: 103.7 kB / 437.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.2961, allocations: 163.6 kB / 438 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004982/0.2966, allocations: 307 kB / 438.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.2968, allocations: 107.6 kB / 438.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.2969, allocations: 75.73 kB / 438.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.2969, allocations: 8 kB / 438.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.2972, allocations: 171.6 kB / 438.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.2973, allocations: 79.8 kB / 438.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.442e-05/0.2973, allocations: 65.58 kB / 438.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.2975, allocations: 251.4 kB / 439 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.2975, allocations: 0 / 439 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2976, allocations: 3.938 kB / 439 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.2976, allocations: 4 kB / 439 MB, free: 12.65 MB / 318.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.0005021/0.2981, allocations: 490.5 kB / 439.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2981, allocations: 12.03 kB / 439.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.043e-05/0.2982, allocations: 54.48 kB / 439.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008332/0.299, allocations: 111.5 kB / 439.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.2993, allocations: 246.5 kB / 439.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2993, allocations: 19.97 kB / 439.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.2994, allocations: 16 kB / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.2998, allocations: 325.6 kB / 440.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2998, allocations: 4 kB / 440.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.2998, allocations: 8 kB / 440.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/0.2998, allocations: 19.98 kB / 440.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003367/0.3002, allocations: 291.7 kB / 440.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.3015, allocations: 1.268 MB / 441.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.3019, allocations: 233 kB / 442.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.3019, allocations: 8.062 kB / 442.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.3019, allocations: 34.56 kB / 442.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.3019, allocations: 0 / 442.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006637/0.3026, allocations: 441.2 kB / 442.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.3026, allocations: 77.11 kB / 442.6 MB, free: 8.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.3028, allocations: 202.2 kB / 442.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.3028, allocations: 25.7 kB / 442.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.502e-05/0.3029, allocations: 164 kB / 443 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.3029, allocations: 63.09 kB / 443.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.3029, allocations: 4 kB / 443.1 MB, free: 8.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.652e-05/0.303, allocations: 326.8 kB / 443.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.3031, allocations: 87.94 kB / 443.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.3033, allocations: 160.5 kB / 443.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.3034, allocations: 103.9 kB / 443.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3034, allocations: 3.953 kB / 443.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003608/0.3038, allocations: 300.2 kB / 444 MB, free: 7.301 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3038, allocations: 8 kB / 444 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3038, allocations: 0 / 444 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3038, allocations: 4 kB / 444 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.304, allocations: 51.91 kB / 444.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3041, allocations: 7.938 kB / 444.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.3042, allocations: 20.27 kB / 444.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.3042, allocations: 8 kB / 444.1 MB, free: 7.203 MB / 318.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.0001049/0.3043, allocations: 161.7 kB / 444.3 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-05/0.3044, allocations: 23.7 kB / 444.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.3047, allocations: 223.4 kB / 444.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3047, allocations: 4 kB / 444.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.3047, allocations: 7.969 kB / 444.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3047, allocations: 0 / 444.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009602/0.3057, allocations: 0.9516 MB / 445.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3057, allocations: 7.938 kB / 445.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.3058, allocations: 31.92 kB / 445.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.3058, allocations: 8 kB / 445.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.3059, allocations: 12.45 kB / 445.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.3059, allocations: 11.98 kB / 445.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.3059, allocations: 7.938 kB / 445.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005279/0.3064, allocations: 0.5901 MB / 446.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.3065, allocations: 96.92 kB / 446.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.3066, allocations: 7.984 kB / 446.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.3068, allocations: 16 kB / 446.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.3069, allocations: 23.88 kB / 446.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.3069, allocations: 16 kB / 446.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.3071, allocations: 151 kB / 446.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3071, allocations: 0 / 446.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.3077, allocations: 52 kB / 446.5 MB, free: 4.516 MB / 318.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.0007247/0.3084, allocations: 2.233 MB / 448.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3087, allocations: 215.7 kB / 449 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3087, allocations: 0 / 449 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3089, allocations: 101.2 kB / 449.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.3092, allocations: 39.42 kB / 449.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.3114, allocations: 2.767 MB / 451.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3117, allocations: 0.7713 MB / 452.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.3119, allocations: 53.44 kB / 452.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.3121, allocations: 71.41 kB / 452.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3121, allocations: 0 / 452.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.3259, allocations: 3.681 MB / 456.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.3261, allocations: 186.2 kB / 456.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/1.91, allocations: 0 / 456.6 MB, free: 10.12 MB / 334.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: