Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_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.0009364/0.0009363, allocations: 92.38 kB / 17.31 MB, free: 5.57 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.001183/0.001183, allocations: 177.3 kB / 18.21 MB, free: 5.145 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.447/1.447, allocations: 223.3 MB / 242.2 MB, free: 14.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1754/0.1754, allocations: 38.1 MB / 331.5 MB, free: 8.488 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004804/0.00048, allocations: 13.66 kB / 401.4 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1398, allocations: 59.16 MB / 460.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008/0.1479, allocations: 5.395 MB / 465.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004513/0.1525, allocations: 2.154 MB / 468.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006626/0.1532, allocations: 27.81 kB / 468.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005896/0.1538, allocations: 123.2 kB / 468.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.1548, allocations: 330.3 kB / 468.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.1554, allocations: 187 kB / 468.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.1566, allocations: 0.8371 MB / 469.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005063/0.1571, allocations: 341.5 kB / 469.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004614/0.1576, allocations: 238.8 kB / 470.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.1581, allocations: 282.8 kB / 470.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.1582, allocations: 24 kB / 470.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003242/0.1585, allocations: 71.92 kB / 470.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.1587, allocations: 119.5 kB / 470.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.159, allocations: 268.4 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005128/0.1595, allocations: 494.8 kB / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1595, allocations: 0 / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1595, allocations: 0 / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1595, allocations: 0 / 471.4 MB, free: 12.15 MB / 350.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.001551/0.1611, allocations: 0.7572 MB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.1612, allocations: 12.03 kB / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.1613, allocations: 60.27 kB / 472.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007645/0.1621, allocations: 466 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/0.1621, allocations: 28.98 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.769e-05/0.1622, allocations: 43.91 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.163, allocations: 453.1 kB / 473.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.163, allocations: 4 kB / 473.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.163, allocations: 12 kB / 473.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.1631, allocations: 12 kB / 473.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.1635, allocations: 282.3 kB / 473.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.1658, allocations: 1.866 MB / 475.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.1664, allocations: 247.6 kB / 475.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.1666, allocations: 86.98 kB / 475.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.1666, allocations: 11.94 kB / 475.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.1669, allocations: 169.7 kB / 475.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1669, allocations: 0 / 475.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001854/0.1688, allocations: 0.9065 MB / 476.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1689, allocations: 132.5 kB / 476.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004894/0.1694, allocations: 405.8 kB / 477.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.1695, allocations: 29.7 kB / 477.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.1697, allocations: 267.8 kB / 477.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.755e-05/0.1698, allocations: 98.64 kB / 477.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.675e-05/0.1698, allocations: 41.64 kB / 477.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.17, allocations: 350.9 kB / 478 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1702, allocations: 87.91 kB / 478.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.1705, allocations: 216.2 kB / 478.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.1709, allocations: 315.9 kB / 478.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1709, allocations: 4 kB / 478.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008676/0.1718, allocations: 429.4 kB / 479.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.1718, allocations: 4 kB / 479.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1719, allocations: 4 kB / 479.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/0.1723, allocations: 101.2 kB / 479.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.1726, allocations: 59.91 kB / 479.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.175, allocations: 1.819 MB / 481 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002823/0.1753, allocations: 23.98 kB / 481.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.1753, allocations: 16 kB / 481.1 MB, free: 1.738 MB / 350.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.0003133/0.1757, allocations: 193.7 kB / 481.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.1757, allocations: 47.58 kB / 481.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006168/0.1764, allocations: 294 kB / 481.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1764, allocations: 4 kB / 481.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1764, allocations: 7.938 kB / 481.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1764, allocations: 0 / 481.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1775, allocations: 0.7727 MB / 482.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1775, allocations: 0 / 482.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.1778, allocations: 51.91 kB / 482.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.178, allocations: 48.75 kB / 482.5 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.178, allocations: 8 kB / 482.5 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.1794, allocations: 1.429 MB / 483.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1794, allocations: 4.031 kB / 483.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008309/0.1802, allocations: 0.4953 MB / 484.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.1805, allocations: 144.4 kB / 484.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.1805, allocations: 7.938 kB / 484.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.1808, allocations: 11.98 kB / 484.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.1809, allocations: 24.2 kB / 484.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.1809, allocations: 12 kB / 484.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004102/0.1814, allocations: 279.1 kB / 484.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1814, allocations: 0 / 484.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006497/0.182, allocations: 108 kB / 485 MB, free: 13.56 MB / 366.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.0009905/0.183, allocations: 399.3 kB / 485.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008858/0.1839, allocations: 403 kB / 485.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1839, allocations: 0 / 485.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.1843, allocations: 247.2 kB / 486 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007482/0.1851, allocations: 125.3 kB / 486.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.1872, allocations: 1.422 MB / 487.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.1876, allocations: 0.8506 MB / 488.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1877, allocations: 35.44 kB / 488.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1877, allocations: 0 / 488.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of Templates: time 0.01253/0.2003, allocations: 8.134 MB / 496.6 MB, free: 2.051 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile make -j1 -f PowerSystems_latest_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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_serCalcHelperMain.o] Error 1