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.001281/0.001281, allocations: 105.2 kB / 16.51 MB, free: 6.707 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.001288/0.001288, allocations: 188.1 kB / 17.42 MB, free: 6.07 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.398/1.398, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1732/0.1732, allocations: 37.98 MB / 308.6 MB, free: 6.242 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.001349/0.001349, allocations: 67.91 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.245, allocations: 55.24 MB / 430 MB, free: 19.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004199/0.2493, allocations: 3.724 MB / 433.7 MB, free: 16.13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.2509, allocations: 1.599 MB / 435.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2511, allocations: 11.94 kB / 435.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006997/0.2518, allocations: 243.1 kB / 435.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004768/0.2523, allocations: 267.2 kB / 435.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.2525, allocations: 115.7 kB / 435.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003749/0.2529, allocations: 0.5689 MB / 436.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.2532, allocations: 138 kB / 436.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.2534, allocations: 127.4 kB / 436.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.2536, allocations: 167.4 kB / 436.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.2536, allocations: 8 kB / 436.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004539/0.254, allocations: 403 kB / 437.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.961e-05/0.2542, allocations: 103.6 kB / 437.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.996e-05/0.2543, allocations: 107.5 kB / 437.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.2547, allocations: 374.9 kB / 437.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.2547, allocations: 0 / 437.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.2547, allocations: 0 / 437.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2547, allocations: 0 / 437.9 MB, free: 11.93 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.0007072/0.2554, allocations: 0.5181 MB / 438.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.2555, allocations: 8.031 kB / 438.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.496e-05/0.2555, allocations: 58.72 kB / 438.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008396/0.2564, allocations: 92.55 kB / 438.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.2566, allocations: 263.8 kB / 438.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.2566, allocations: 12.38 kB / 438.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.2567, allocations: 20.36 kB / 438.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.2571, allocations: 325.6 kB / 439.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2571, allocations: 3.938 kB / 439.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.2572, allocations: 7.984 kB / 439.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.2572, allocations: 23.98 kB / 439.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003485/0.2576, allocations: 283.8 kB / 439.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.2589, allocations: 1.268 MB / 440.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.2593, allocations: 237 kB / 441 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.2594, allocations: 98.02 kB / 441.1 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.2595, allocations: 7.938 kB / 441.1 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.2595, allocations: 34.56 kB / 441.1 MB, free: 8.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.2595, allocations: 0 / 441.1 MB, free: 8.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007121/0.2602, allocations: 440.1 kB / 441.5 MB, free: 8.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.2603, allocations: 84.98 kB / 441.6 MB, free: 7.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.2604, allocations: 198.3 kB / 441.8 MB, free: 7.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.2604, allocations: 33.64 kB / 441.8 MB, free: 7.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.2605, allocations: 160 kB / 442 MB, free: 7.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.2605, allocations: 63.05 kB / 442.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.2606, allocations: 41.7 kB / 442.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.104e-05/0.2606, allocations: 334.8 kB / 442.4 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2608, allocations: 83.95 kB / 442.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.2609, allocations: 160.5 kB / 442.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.2611, allocations: 260.3 kB / 442.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2612, allocations: 4 kB / 442.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003205/0.2615, allocations: 294.4 kB / 443.2 MB, free: 6.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2615, allocations: 11.97 kB / 443.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2615, allocations: 4 kB / 443.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.2615, allocations: 7.984 kB / 443.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/0.2618, allocations: 51.91 kB / 443.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.2618, allocations: 4 kB / 443.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.2619, allocations: 15.98 kB / 443.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.2619, allocations: 12 kB / 443.3 MB, free: 6.109 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.2621, allocations: 149.8 kB / 443.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.2621, allocations: 31.73 kB / 443.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003002/0.2624, allocations: 230.4 kB / 443.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2624, allocations: 4 kB / 443.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2624, allocations: 4 kB / 443.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2624, allocations: 3.984 kB / 443.7 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009819/0.2634, allocations: 0.9557 MB / 444.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2634, allocations: 0 / 444.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.2636, allocations: 31.98 kB / 444.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.2636, allocations: 8 kB / 444.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.2636, allocations: 11.94 kB / 444.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2636, allocations: 11.92 kB / 444.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.2636, allocations: 4 kB / 444.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.264, allocations: 413 kB / 445.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.264, allocations: 100.9 kB / 445.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2641, allocations: 11.94 kB / 445.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.2642, allocations: 19.98 kB / 445.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.2643, allocations: 23.86 kB / 445.3 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.2643, allocations: 11.94 kB / 445.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.57e-05/0.2644, allocations: 143.2 kB / 445.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2644, allocations: 0 / 445.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.2648, allocations: 56 kB / 445.5 MB, free: 3.711 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 (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.0004738/0.2652, allocations: 0.9442 MB / 446.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.2655, allocations: 216.2 kB / 446.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2655, allocations: 4.5 kB / 446.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.2657, allocations: 103.8 kB / 446.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.2661, allocations: 44.19 kB / 446.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.2685, allocations: 2.737 MB / 449.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.269, allocations: 0.7596 MB / 450.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.2692, allocations: 57.42 kB / 450.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2693, allocations: 67.42 kB / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.004e-06/0.2693, allocations: 0 / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02487/0.2942, allocations: 3.848 MB / 454.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002702/0.2945, allocations: 194 kB / 454.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.228, allocations: 3.938 kB / 454.5 MB, free: 10.38 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/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)