Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008924/0.0008924, allocations: 94.58 kB / 17.31 MB, free: 5.59 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.001287/0.001287, allocations: 177.8 kB / 18.21 MB, free: 5.191 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.856/1.856, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.192/0.192, allocations: 38.05 MB / 310.7 MB, free: 5.902 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.0005761/0.000576, allocations: 23.98 kB / 377.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3127, allocations: 56.33 MB / 434.1 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005184/0.318, allocations: 5.386 MB / 439.5 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.321, allocations: 2.116 MB / 441.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003184/0.3214, allocations: 27.81 kB / 441.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004154/0.3218, allocations: 127.2 kB / 441.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006489/0.3225, allocations: 314.4 kB / 442.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.3229, allocations: 182.1 kB / 442.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.3236, allocations: 0.8254 MB / 443.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.324, allocations: 349.5 kB / 443.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.3243, allocations: 242.8 kB / 443.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.3246, allocations: 274.8 kB / 444 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.3247, allocations: 24 kB / 444 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.3248, allocations: 67.97 kB / 444 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.3249, allocations: 119.6 kB / 444.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.3252, allocations: 272.4 kB / 444.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.3256, allocations: 0.4908 MB / 444.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3256, allocations: 0 / 444.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3256, allocations: 0 / 444.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3256, allocations: 0 / 444.9 MB, free: 7.848 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001187/0.3268, allocations: 0.7495 MB / 445.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3268, allocations: 11.97 kB / 445.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.849e-05/0.3269, allocations: 56.28 kB / 445.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.3275, allocations: 474 kB / 446.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.3275, allocations: 25 kB / 446.2 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.3276, allocations: 40 kB / 446.3 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.3281, allocations: 461.1 kB / 446.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.3282, allocations: 0 / 446.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3282, allocations: 16 kB / 446.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.3282, allocations: 15.88 kB / 446.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.3286, allocations: 274.3 kB / 447 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.3302, allocations: 1.866 MB / 448.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/0.3306, allocations: 255.5 kB / 449.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3307, allocations: 86.98 kB / 449.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.3308, allocations: 12.09 kB / 449.2 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.331, allocations: 181.7 kB / 449.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.331, allocations: 4 kB / 449.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001352/0.3323, allocations: 0.8935 MB / 450.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.3324, allocations: 140.8 kB / 450.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.3328, allocations: 405.8 kB / 450.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3328, allocations: 33.64 kB / 450.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3329, allocations: 255.8 kB / 451.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.333, allocations: 94.64 kB / 451.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.3331, allocations: 37.69 kB / 451.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3332, allocations: 350.8 kB / 451.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3333, allocations: 83.95 kB / 451.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3335, allocations: 212.7 kB / 451.9 MB, free: 424 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.3338, allocations: 319 kB / 452.2 MB, free: 48 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3338, allocations: 4 kB / 452.2 MB, free: 44 kB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008257/0.3346, allocations: 429.4 kB / 452.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3347, allocations: 8 kB / 452.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3347, allocations: 4 kB / 452.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004137/0.3351, allocations: 84.78 kB / 452.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3353, allocations: 72.25 kB / 452.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.3377, allocations: 1.826 MB / 454.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.338, allocations: 20.06 kB / 454.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.338, allocations: 19.98 kB / 454.6 MB, free: 13.44 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002572/0.3383, allocations: 197.6 kB / 454.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.3384, allocations: 43.44 kB / 454.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000616/0.339, allocations: 294.2 kB / 455.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.339, allocations: 11.94 kB / 455.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.339, allocations: 3.938 kB / 455.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.339, allocations: 4 kB / 455.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.3401, allocations: 0.7645 MB / 455.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3401, allocations: 0 / 455.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.3403, allocations: 43.92 kB / 456 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/0.3406, allocations: 52.8 kB / 456 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.3406, allocations: 8 kB / 456 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.3418, allocations: 1.445 MB / 457.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3419, allocations: 4.031 kB / 457.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007288/0.3426, allocations: 0.4897 MB / 458 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.3427, allocations: 140.6 kB / 458.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.3428, allocations: 8 kB / 458.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.343, allocations: 12 kB / 458.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.182e-05/0.3431, allocations: 31.89 kB / 458.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.3431, allocations: 4 kB / 458.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.3434, allocations: 283.1 kB / 458.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3435, allocations: 0 / 458.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005161/0.344, allocations: 108 kB / 458.6 MB, free: 9.258 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009299/0.3449, allocations: 401.2 kB / 459 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008328/0.3458, allocations: 407.1 kB / 459.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3458, allocations: 0 / 459.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003823/0.3462, allocations: 239.4 kB / 459.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.3469, allocations: 129.5 kB / 459.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.3488, allocations: 1.407 MB / 461.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.3493, allocations: 0.8506 MB / 462 MB, free: 5.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3494, allocations: 39.42 kB / 462 MB, free: 5.777 MB / 334.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3494, allocations: 0 / 462 MB, free: 5.777 MB / 334.1 MB Notification: Performance of Templates: time 0.01117/0.3606, allocations: 8.125 MB / 470.1 MB, free: 13.64 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.o] Error 1