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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001198/0.001198, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001286/0.001286, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.201/1.201, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1574/0.1574, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 70.72 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08055/0.0817, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004226/0.08596, allocations: 3.465 MB / 460.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.08768, allocations: 1.485 MB / 461.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.826e-05/0.08778, allocations: 7.938 kB / 461.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006684/0.08845, allocations: 262.9 kB / 462.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004458/0.08891, allocations: 274.9 kB / 462.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.08915, allocations: 127.6 kB / 462.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003054/0.08947, allocations: 347 kB / 462.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.08971, allocations: 133.9 kB / 463 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.08988, allocations: 147.4 kB / 463.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.09007, allocations: 155.4 kB / 463.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.0901, allocations: 16 kB / 463.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004088/0.09052, allocations: 335.1 kB / 463.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.09061, allocations: 91.77 kB / 463.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.09072, allocations: 111.4 kB / 463.9 MB, free: 1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.0911, allocations: 363 kB / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.09111, allocations: 0 / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09112, allocations: 0 / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.09113, allocations: 0 / 464.2 MB, free: 0.6445 MB / 334.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.0005596/0.09169, allocations: 0.5103 MB / 464.7 MB, free: 88 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.09173, allocations: 15.89 kB / 464.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.259e-05/0.09179, allocations: 58.7 kB / 464.8 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008005/0.09259, allocations: 92.64 kB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.09286, allocations: 259.7 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.09288, allocations: 20.33 kB / 465.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.09292, allocations: 20.36 kB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.09333, allocations: 309.8 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.09335, allocations: 3.938 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.09338, allocations: 15.98 kB / 465.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.09341, allocations: 19.98 kB / 465.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003796/0.0938, allocations: 291.8 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.09526, allocations: 1.268 MB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/0.09567, allocations: 237.1 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.09581, allocations: 97.72 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.09584, allocations: 8 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.09587, allocations: 30.56 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.09587, allocations: 0 / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007221/0.0966, allocations: 443.6 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.09665, allocations: 89.17 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.09682, allocations: 194.3 kB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.09684, allocations: 25.7 kB / 468.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.09693, allocations: 159.8 kB / 468.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.09698, allocations: 67.06 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.076e-05/0.09705, allocations: 49.7 kB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.09715, allocations: 326.8 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.09727, allocations: 83.95 kB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.09743, allocations: 160.5 kB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.09773, allocations: 266.3 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.09774, allocations: 3.984 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004158/0.09816, allocations: 295.7 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.09818, allocations: 8 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.09819, allocations: 7.938 kB / 469.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.0982, allocations: 0 / 469.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.09843, allocations: 51.91 kB / 469.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.09844, allocations: 7.984 kB / 469.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.09858, allocations: 20.25 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.09861, allocations: 15.98 kB / 469.7 MB, free: 10.82 MB / 350.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.0001614/0.09878, allocations: 153.8 kB / 469.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.09883, allocations: 19.72 kB / 469.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.09916, allocations: 231.4 kB / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.09918, allocations: 0 / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.09918, allocations: 0 / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.0992, allocations: 4 kB / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1003, allocations: 0.9592 MB / 471 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.1004, allocations: 4 kB / 471 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.1005, allocations: 39.91 kB / 471.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1005, allocations: 4 kB / 471.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1005, allocations: 11.94 kB / 471.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.1006, allocations: 12.44 kB / 471.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1006, allocations: 8 kB / 471.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.101, allocations: 411.5 kB / 471.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.101, allocations: 96.91 kB / 471.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.1011, allocations: 15.88 kB / 471.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.1012, allocations: 15.98 kB / 471.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.1013, allocations: 19.92 kB / 471.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1013, allocations: 16 kB / 471.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1014, allocations: 154.9 kB / 471.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1014, allocations: 0 / 471.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1018, allocations: 52 kB / 471.9 MB, free: 8.422 MB / 350.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.0005717/0.1024, allocations: 0.9442 MB / 472.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.1027, allocations: 223.7 kB / 473 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1027, allocations: 3.938 kB / 473 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.1028, allocations: 97.33 kB / 473.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.1033, allocations: 50.77 kB / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.1059, allocations: 2.674 MB / 475.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.1063, allocations: 0.7593 MB / 476.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.1064, allocations: 53.5 kB / 476.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.1065, allocations: 67.41 kB / 476.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1065, allocations: 0 / 476.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.892/2.998, allocations: 4.03 MB / 480.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/16.14, allocations: 22.89 kB / 480.8 MB, free: 15.24 MB / 366.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)