Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001098/0.001098, allocations: 175.2 kB / 16.07 MB, free: 5.719 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.195/1.195, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0006225/0.0006225, allocations: 91.83 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.1608/0.1608, allocations: 38.06 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 19.98 kB / 423.4 MB, free: 37.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2422, allocations: 56.32 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.003841/0.2461, allocations: 3.997 MB / 483.7 MB, free: 6.641 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.2475, allocations: 0.9655 MB / 484.7 MB, free: 5.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.2477, allocations: 18.41 kB / 484.7 MB, free: 5.949 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.2478, allocations: 43.41 kB / 484.8 MB, free: 5.926 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004135/0.2482, allocations: 180.7 kB / 484.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002166/0.2485, allocations: 89.81 kB / 485 MB, free: 5.777 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.2489, allocations: 439.6 kB / 485.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.2491, allocations: 93.31 kB / 485.5 MB, free: 5.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.2494, allocations: 146.7 kB / 485.7 MB, free: 5.508 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.2497, allocations: 174.8 kB / 485.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.2497, allocations: 11.78 kB / 485.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.841e-05/0.2498, allocations: 10.81 kB / 485.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.302e-05/0.2499, allocations: 83.55 kB / 486 MB, free: 5.41 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.25, allocations: 144.1 kB / 486.1 MB, free: 5.316 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.2502, allocations: 207.4 kB / 486.3 MB, free: 5.262 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2502, allocations: 5.031 kB / 486.3 MB, free: 5.258 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2502, allocations: 4 kB / 486.3 MB, free: 5.254 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2503, allocations: 0 / 486.3 MB, free: 5.254 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007827/0.251, allocations: 0.5471 MB / 486.9 MB, free: 4.793 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2511, allocations: 9.375 kB / 486.9 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.304e-05/0.2512, allocations: 59.81 kB / 486.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.178e-05/0.2512, allocations: 30.84 kB / 487 MB, free: 4.723 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.2516, allocations: 321.9 kB / 487.3 MB, free: 4.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.2517, allocations: 14.17 kB / 487.3 MB, free: 4.453 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.2518, allocations: 42 kB / 487.3 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004043/0.2522, allocations: 289.9 kB / 487.6 MB, free: 4.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2522, allocations: 0.5156 kB / 487.6 MB, free: 4.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.2523, allocations: 6.812 kB / 487.6 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2523, allocations: 6.469 kB / 487.6 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.2526, allocations: 189.7 kB / 487.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.2539, allocations: 1.287 MB / 489.1 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.2542, allocations: 115.6 kB / 489.2 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.436e-05/0.2543, allocations: 49.05 kB / 489.3 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.2544, allocations: 1.891 kB / 489.3 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.2544, allocations: 36.3 kB / 489.3 MB, free: 2.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.894e-06/0.2544, allocations: 9.344 kB / 489.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008158/0.2552, allocations: 0.5209 MB / 489.8 MB, free: 2.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.2553, allocations: 108.8 kB / 489.9 MB, free: 2.379 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.2555, allocations: 250.5 kB / 490.2 MB, free: 2.215 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.2555, allocations: 25.7 kB / 490.2 MB, free: 2.184 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.577e-05/0.2556, allocations: 194.6 kB / 490.4 MB, free: 2.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.2556, allocations: 40.44 kB / 490.4 MB, free: 1.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.2557, allocations: 5.375 kB / 490.4 MB, free: 1.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.12e-05/0.2557, allocations: 332 kB / 490.8 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.168e-05/0.2558, allocations: 37.55 kB / 490.8 MB, free: 1.652 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2559, allocations: 135.9 kB / 490.9 MB, free: 1.512 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.2561, allocations: 189.8 kB / 491.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2561, allocations: 0 / 491.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003634/0.2565, allocations: 237.3 kB / 491.3 MB, free: 1.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.2565, allocations: 8.969 kB / 491.4 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.2565, allocations: 3.672 kB / 491.4 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.2567, allocations: 29.64 kB / 491.4 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.257, allocations: 60.48 kB / 491.4 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.257, allocations: 5.859 kB / 491.5 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.2571, allocations: 16.5 kB / 491.5 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2571, allocations: 16.98 kB / 491.5 MB, free: 1.176 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.2573, allocations: 146.5 kB / 491.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/0.2573, allocations: 19.42 kB / 491.6 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.2576, allocations: 142.6 kB / 491.8 MB, free: 0.957 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2576, allocations: 5.25 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2576, allocations: 1.031 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2576, allocations: 2.672 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.2579, allocations: 292 kB / 492.1 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2579, allocations: 0.9375 kB / 492.1 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.2581, allocations: 30.25 kB / 492.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2581, allocations: 2.219 kB / 492.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.2581, allocations: 2.031 kB / 492.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.2581, allocations: 9.984 kB / 492.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2581, allocations: 1.062 kB / 492.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.2585, allocations: 369.6 kB / 492.5 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.2586, allocations: 104.3 kB / 492.6 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.2586, allocations: 2.094 kB / 492.6 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.2587, allocations: 10.69 kB / 492.6 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.2588, allocations: 11.73 kB / 492.6 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.2588, allocations: 4 kB / 492.6 MB, free: 296 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.2589, allocations: 168.8 kB / 492.8 MB, free: 192 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2589, allocations: 5.438 kB / 492.8 MB, free: 188 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003267/0.2593, allocations: 49.25 kB / 492.8 MB, free: 180 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0005687/0.2598, allocations: 0.893 MB / 493.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.2602, allocations: 212.9 kB / 493.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2602, allocations: 0 / 493.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.66e-05/0.2603, allocations: 52.58 kB / 494 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005597/0.2608, allocations: 46.55 kB / 494 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.2631, allocations: 1.621 MB / 495.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.2635, allocations: 0.77 MB / 496.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.2636, allocations: 91.06 kB / 496.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2636, allocations: 0 / 496.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.061/3.325, allocations: 4.294 MB / 0.4891 GB, free: 12.25 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)