Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008266/0.0008268, allocations: 92.53 kB / 17.31 MB, free: 6.535 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.0009351/0.0009352, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.475/1.475, allocations: 223.3 MB / 242.2 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.228/0.228, allocations: 38.09 MB / 331.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003676, allocations: 8 kB / 401.4 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 59.17 MB / 460.5 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006552/0.1248, allocations: 5.905 MB / 466.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0037/0.1285, allocations: 2.283 MB / 468.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004465/0.129, allocations: 27.81 kB / 468.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005647/0.1296, allocations: 147.2 kB / 468.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009367/0.1305, allocations: 373.7 kB / 469.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/0.1311, allocations: 219.6 kB / 469.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.1323, allocations: 1.067 MB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005085/0.1329, allocations: 402.8 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/0.1333, allocations: 282.7 kB / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000423/0.1337, allocations: 330.6 kB / 471.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.168e-05/0.1338, allocations: 24 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.134, allocations: 67.97 kB / 471.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.1341, allocations: 155.5 kB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002578/0.1344, allocations: 296.2 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.1349, allocations: 0.5611 MB / 472.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1349, allocations: 0 / 472.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1349, allocations: 0 / 472.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1349, allocations: 0 / 472.6 MB, free: 10.94 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001423/0.1364, allocations: 0.8046 MB / 473.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1364, allocations: 8.031 kB / 473.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1365, allocations: 64.19 kB / 473.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007342/0.1373, allocations: 0.4902 MB / 474 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.1373, allocations: 29 kB / 474 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1374, allocations: 51.92 kB / 474.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007502/0.1382, allocations: 0.5212 MB / 474.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1382, allocations: 3.938 kB / 474.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.494e-05/0.1383, allocations: 16 kB / 474.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.712e-05/0.1384, allocations: 21 kB / 474.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005185/0.1389, allocations: 339.7 kB / 475 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.1413, allocations: 2.077 MB / 477 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1417, allocations: 223.8 kB / 477.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.1418, allocations: 82.61 kB / 477.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.1419, allocations: 8.219 kB / 477.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.1421, allocations: 169.7 kB / 477.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.824e-06/0.1421, allocations: 0 / 477.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001573/0.1437, allocations: 0.9211 MB / 478.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.1438, allocations: 136.5 kB / 478.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004449/0.1442, allocations: 429.8 kB / 479 MB, free: 4.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.1443, allocations: 29.7 kB / 479 MB, free: 4.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1445, allocations: 291.7 kB / 479.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.252e-05/0.1445, allocations: 98.7 kB / 479.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.659e-05/0.1446, allocations: 41.7 kB / 479.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1447, allocations: 354.7 kB / 479.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.1449, allocations: 80.84 kB / 479.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.1451, allocations: 229.8 kB / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/0.1455, allocations: 321.7 kB / 480.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1455, allocations: 0 / 480.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007786/0.1463, allocations: 441.9 kB / 480.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1463, allocations: 12.09 kB / 480.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.1463, allocations: 7.938 kB / 480.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004029/0.1467, allocations: 88.77 kB / 480.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.147, allocations: 75.84 kB / 481 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.1489, allocations: 1.71 MB / 482.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.1491, allocations: 24 kB / 482.7 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.1492, allocations: 15.98 kB / 482.8 MB, free: 104 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002494/0.1494, allocations: 205.7 kB / 483 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.1495, allocations: 47.38 kB / 483 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005381/0.15, allocations: 288.1 kB / 483.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.15, allocations: 0 / 483.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.15, allocations: 4 kB / 483.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1501, allocations: 0 / 483.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1511, allocations: 0.7715 MB / 484.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.1511, allocations: 7.938 kB / 484.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.1514, allocations: 43.97 kB / 484.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.1516, allocations: 48.81 kB / 484.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.1516, allocations: 11.94 kB / 484.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.1527, allocations: 1.437 MB / 485.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1527, allocations: 4.172 kB / 485.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006516/0.1534, allocations: 493.9 kB / 486.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.1535, allocations: 136.6 kB / 486.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.454e-05/0.1536, allocations: 0 / 486.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.1538, allocations: 19.98 kB / 486.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.316e-05/0.1539, allocations: 23.91 kB / 486.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.1539, allocations: 4 kB / 486.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.1543, allocations: 311.1 kB / 486.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1543, allocations: 0 / 486.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004703/0.1548, allocations: 112 kB / 486.7 MB, free: 11.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0008472/0.1556, allocations: 402.7 kB / 487.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007543/0.1564, allocations: 390.7 kB / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1564, allocations: 0 / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.1567, allocations: 238.5 kB / 487.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007389/0.1575, allocations: 130.6 kB / 487.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.1594, allocations: 1.539 MB / 489.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.1599, allocations: 0.8779 MB / 490.2 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.16, allocations: 39.42 kB / 490.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.16, allocations: 3.938 kB / 490.3 MB, free: 8.371 MB / 366.1 MB Notification: Performance of Templates: time 0.01143/0.1715, allocations: 8.732 MB / 499 MB, free: 15.67 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_parCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_parCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_parCalcHelperMain.o] Error 1