Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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: translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008826/0.0008826, allocations: 98.66 kB / 16.96 MB, free: 6.398 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.0008437/0.0008435, allocations: 175.4 kB / 17.84 MB, free: 5.969 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.604/1.604, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1773/0.1773, allocations: 38.04 MB / 310.3 MB, free: 6.031 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.0005093/0.0005093, allocations: 19.94 kB / 377.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2898, allocations: 56.33 MB / 433.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006448/0.2963, allocations: 8.226 MB / 441.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00422/0.3006, allocations: 2.725 MB / 444.4 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000731/0.3013, allocations: 63.56 kB / 444.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007327/0.3021, allocations: 262.2 kB / 444.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.3036, allocations: 0.5907 MB / 445.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3049, allocations: 463.2 kB / 445.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.306, allocations: 1.519 MB / 447.3 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.3074, allocations: 0.9969 MB / 448.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006425/0.3081, allocations: 461.8 kB / 448.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007029/0.3088, allocations: 0.627 MB / 449.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.797e-05/0.3088, allocations: 44 kB / 449.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003557/0.3092, allocations: 143.8 kB / 449.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.3095, allocations: 462.8 kB / 450 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.3097, allocations: 209.1 kB / 450.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006219/0.3103, allocations: 0.9234 MB / 451.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3103, allocations: 3.938 kB / 451.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3103, allocations: 0 / 451.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.3104, allocations: 0 / 451.1 MB, free: 1.062 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001666/0.312, allocations: 1.15 MB / 452.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3121, allocations: 8.031 kB / 452.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007616/0.3128, allocations: 162.6 kB / 452.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.3139, allocations: 0.664 MB / 453.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.881e-05/0.314, allocations: 61.98 kB / 453.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.3141, allocations: 91.94 kB / 453.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3157, allocations: 1.167 MB / 454.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.015e-05/0.3158, allocations: 11.83 kB / 454.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.694e-05/0.3158, allocations: 36 kB / 454.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.971e-05/0.3159, allocations: 53.98 kB / 454.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.3173, allocations: 0.9249 MB / 455.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.3228, allocations: 4.807 MB / 460.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.324, allocations: 0.6684 MB / 460.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005181/0.3245, allocations: 379.8 kB / 461.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.3245, allocations: 16.48 kB / 461.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006394/0.3252, allocations: 435.8 kB / 461.8 MB, free: 6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.154e-06/0.3252, allocations: 0 / 461.8 MB, free: 6 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.004862/0.3301, allocations: 2.44 MB / 464.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.3302, allocations: 170.8 kB / 464.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.3309, allocations: 0.5939 MB / 465 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.3309, allocations: 37.7 kB / 465 MB, free: 2.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.3313, allocations: 486.6 kB / 465.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.3316, allocations: 224.8 kB / 465.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.3316, allocations: 16 kB / 465.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3318, allocations: 390.8 kB / 466.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.3322, allocations: 281.8 kB / 466.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.3329, allocations: 0.5563 MB / 466.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000551/0.3334, allocations: 403.6 kB / 467.3 MB, free: 180 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3334, allocations: 8 kB / 467.3 MB, free: 172 kB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001907/0.3353, allocations: 1.216 MB / 468.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.3354, allocations: 33.7 kB / 468.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3354, allocations: 8 kB / 468.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009623/0.3364, allocations: 341.9 kB / 468.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.3368, allocations: 151.7 kB / 469.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005394/0.3422, allocations: 4.941 MB / 474 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3428, allocations: 40.03 kB / 474 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.3428, allocations: 32 kB / 474.1 MB, free: 9.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005224/0.3434, allocations: 363.2 kB / 474.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.3435, allocations: 83 kB / 474.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.3453, allocations: 1.044 MB / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.3453, allocations: 8 kB / 475.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3453, allocations: 4 kB / 475.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3453, allocations: 0 / 475.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/0.3485, allocations: 2.071 MB / 477.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.3485, allocations: 0 / 477.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.3488, allocations: 76.06 kB / 477.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007985/0.3496, allocations: 309.4 kB / 478 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.3497, allocations: 27.94 kB / 478 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005179/0.3549, allocations: 4.865 MB / 482.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3549, allocations: 3.953 kB / 482.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.3566, allocations: 1.115 MB / 484 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.3569, allocations: 148.2 kB / 484.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.158e-05/0.357, allocations: 12.09 kB / 484.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.3573, allocations: 27.98 kB / 484.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3574, allocations: 60.38 kB / 484.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.3574, allocations: 16 kB / 484.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005098/0.358, allocations: 419 kB / 484.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.358, allocations: 0 / 484.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00102/0.359, allocations: 268 kB / 484.9 MB, free: 13.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001725/0.3592, allocations: 125.9 kB / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.361, allocations: 1.133 MB / 486.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3611, allocations: 0 / 486.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3621, allocations: 0.7714 MB / 487 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000819/0.3629, allocations: 163.6 kB / 487.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.3662, allocations: 2.187 MB / 489.3 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.367, allocations: 1.099 MB / 490.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.3671, allocations: 55.44 kB / 490.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3672, allocations: 0 / 490.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of Templates: time 0.02366/0.3908, allocations: 16.94 MB / 0.4955 GB, free: 7.07 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyStateCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyStateCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyStateCalcHelperMain.o] Error 1