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.0008485/0.0008486, allocations: 173.7 kB / 16.07 MB, free: 5.723 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.255/1.255, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007701/0.0007701, allocations: 94.23 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1811/0.1811, allocations: 38.06 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003565, allocations: 12 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2852, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.003337/0.2885, allocations: 3.235 MB / 483 MB, free: 7.172 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.2902, allocations: 1.49 MB / 484.5 MB, free: 6.117 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2904, allocations: 10.78 kB / 484.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.2905, allocations: 37.73 kB / 484.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006324/0.2912, allocations: 262.8 kB / 484.8 MB, free: 5.969 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.2915, allocations: 121.1 kB / 484.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.292, allocations: 448.6 kB / 485.3 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005694/0.2926, allocations: 320.1 kB / 485.6 MB, free: 5.547 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2928, allocations: 119.6 kB / 485.7 MB, free: 5.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.293, allocations: 154.6 kB / 485.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.293, allocations: 8.75 kB / 485.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006295/0.2937, allocations: 386 kB / 486.3 MB, free: 5.305 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.2938, allocations: 93.25 kB / 486.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2939, allocations: 114.8 kB / 486.5 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.2944, allocations: 261 kB / 486.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.351e-06/0.2944, allocations: 0 / 486.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2944, allocations: 0 / 486.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2944, allocations: 1.531 kB / 486.7 MB, free: 5.145 MB / 314.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.0005759/0.295, allocations: 490.8 kB / 487.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.295, allocations: 10.72 kB / 487.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/0.2951, allocations: 55.84 kB / 487.3 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008329/0.2959, allocations: 92.73 kB / 487.4 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.2962, allocations: 264.9 kB / 487.6 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.2962, allocations: 17.27 kB / 487.7 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.2963, allocations: 15.38 kB / 487.7 MB, free: 4.371 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005318/0.2968, allocations: 320.6 kB / 488 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.2969, allocations: 9.406 kB / 488 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.2969, allocations: 10.38 kB / 488 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.193e-05/0.2969, allocations: 18.22 kB / 488 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.2974, allocations: 286.6 kB / 488.3 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.299, allocations: 1.279 MB / 489.6 MB, free: 3.152 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.2995, allocations: 234.1 kB / 489.8 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2997, allocations: 95.36 kB / 489.9 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.2997, allocations: 7.109 kB / 489.9 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.2997, allocations: 40.56 kB / 489.9 MB, free: 2.945 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.265e-06/0.2998, allocations: 0 / 489.9 MB, free: 2.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009452/0.3007, allocations: 436.8 kB / 490.4 MB, free: 2.746 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.3008, allocations: 88.55 kB / 490.5 MB, free: 2.645 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.301, allocations: 198.9 kB / 490.7 MB, free: 2.508 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.853e-05/0.301, allocations: 26.58 kB / 490.7 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.3011, allocations: 160.5 kB / 490.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.3012, allocations: 64.12 kB / 490.9 MB, free: 2.285 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.3012, allocations: 5.375 kB / 490.9 MB, free: 2.281 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.3013, allocations: 328.5 kB / 491.2 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.3014, allocations: 84.12 kB / 491.3 MB, free: 1.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.3016, allocations: 161.1 kB / 491.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.302, allocations: 263.6 kB / 491.7 MB, free: 1.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.302, allocations: 1.594 kB / 491.7 MB, free: 1.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004924/0.3025, allocations: 296.2 kB / 492 MB, free: 1.512 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3025, allocations: 10.38 kB / 492 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3026, allocations: 6.312 kB / 492 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.3026, allocations: 3.844 kB / 492 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002556/0.3028, allocations: 53.7 kB / 492.1 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.3029, allocations: 8.469 kB / 492.1 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.303, allocations: 14.23 kB / 492.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.303, allocations: 8.062 kB / 492.1 MB, free: 1.492 MB / 314.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.0001395/0.3032, allocations: 156.6 kB / 492.3 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.3032, allocations: 20.53 kB / 492.3 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004151/0.3037, allocations: 233.9 kB / 492.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3037, allocations: 2.062 kB / 492.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.3037, allocations: 1.625 kB / 492.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3037, allocations: 5.484 kB / 492.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.3051, allocations: 0.9491 MB / 493.5 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.3051, allocations: 3.562 kB / 493.5 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.3053, allocations: 33.12 kB / 493.5 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.3053, allocations: 4.656 kB / 493.5 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.3053, allocations: 13.89 kB / 493.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.3054, allocations: 10.05 kB / 493.5 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.3054, allocations: 5.047 kB / 493.5 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004415/0.3058, allocations: 418.2 kB / 494 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.736e-05/0.3059, allocations: 96.88 kB / 494 MB, free: 144 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.3059, allocations: 21.92 kB / 494.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.3061, allocations: 14.36 kB / 494.1 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.3062, allocations: 20.7 kB / 494.1 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.3062, allocations: 17.17 kB / 494.1 MB, free: 108 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.3063, allocations: 148.9 kB / 494.3 MB, free: 8 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3063, allocations: 0 / 494.3 MB, free: 8 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.000355/0.3067, allocations: 51.81 kB / 494.3 MB, free: 4 kB / 314.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.0007398/0.3074, allocations: 0.9469 MB / 495.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.3078, allocations: 211.3 kB / 495.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3078, allocations: 1.188 kB / 495.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.308, allocations: 101.6 kB / 495.6 MB, free: 15.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005362/0.3085, allocations: 45.84 kB / 495.6 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.3108, allocations: 1.47 MB / 497.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.3112, allocations: 0.7585 MB / 497.8 MB, free: 13.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.3113, allocations: 71.09 kB / 497.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3113, allocations: 0 / 497.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.778/3.09, allocations: 3.218 MB / 0.4894 GB, free: 12.33 MB / 330.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)