Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007466/0.0007467, allocations: 91.91 kB / 16.95 MB, free: 5.953 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.0008602/0.0008602, allocations: 177.8 kB / 17.84 MB, free: 5.617 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.301/1.301, allocations: 223.2 MB / 241.8 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1657/0.1657, allocations: 38.09 MB / 331.1 MB, free: 8.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 8 kB / 400.7 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 59.16 MB / 459.9 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006173/0.1128, allocations: 5.402 MB / 465.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.1155, allocations: 1.722 MB / 467 MB, free: 268 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.1159, allocations: 35.75 kB / 467 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.1163, allocations: 123.1 kB / 467.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007777/0.1171, allocations: 338 kB / 467.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.1175, allocations: 163.8 kB / 467.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007713/0.1182, allocations: 0.7511 MB / 468.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004082/0.1187, allocations: 321.2 kB / 468.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.119, allocations: 231 kB / 468.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003647/0.1193, allocations: 267 kB / 469.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.1194, allocations: 28 kB / 469.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.976e-05/0.1195, allocations: 24 kB / 469.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.1196, allocations: 127.6 kB / 469.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1197, allocations: 121.5 kB / 469.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.1201, allocations: 458.7 kB / 469.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1201, allocations: 0 / 469.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1201, allocations: 4 kB / 469.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1202, allocations: 0 / 469.9 MB, free: 13.3 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001447/0.1216, allocations: 0.7073 MB / 470.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1217, allocations: 8.031 kB / 470.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.471e-05/0.1218, allocations: 55.34 kB / 470.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007335/0.1225, allocations: 426.9 kB / 471.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.228e-05/0.1226, allocations: 62.7 kB / 471.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.936e-05/0.1227, allocations: 47.86 kB / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008483/0.1235, allocations: 0.5009 MB / 471.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.1236, allocations: 7.984 kB / 471.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.1236, allocations: 16 kB / 471.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1236, allocations: 8 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006006/0.1242, allocations: 355.6 kB / 472.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.1264, allocations: 1.976 MB / 474.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.1268, allocations: 231 kB / 474.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.127, allocations: 102.6 kB / 474.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.127, allocations: 3.953 kB / 474.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.1271, allocations: 42.56 kB / 474.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.1271, allocations: 0 / 474.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001751/0.1288, allocations: 0.8575 MB / 475.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.1289, allocations: 106.8 kB / 475.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003449/0.1293, allocations: 325.6 kB / 475.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1293, allocations: 33.77 kB / 475.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.1295, allocations: 271.6 kB / 476 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.619e-05/0.1296, allocations: 82.83 kB / 476.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.1296, allocations: 8 kB / 476.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1297, allocations: 346.8 kB / 476.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.1299, allocations: 83.94 kB / 476.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.1302, allocations: 217.1 kB / 476.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/0.1309, allocations: 307 kB / 477.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1309, allocations: 3.953 kB / 477.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008038/0.1317, allocations: 419.4 kB / 477.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1318, allocations: 11.94 kB / 477.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.1318, allocations: 11.94 kB / 477.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.1321, allocations: 72.81 kB / 477.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.1323, allocations: 71.83 kB / 477.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.1341, allocations: 1.745 MB / 479.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.1344, allocations: 15.98 kB / 479.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.1344, allocations: 20.06 kB / 479.4 MB, free: 3.184 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002736/0.1347, allocations: 204 kB / 479.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-05/0.1348, allocations: 39.53 kB / 479.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.516e-05/0.1348, allocations: 35.31 kB / 479.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1348, allocations: 4 kB / 479.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.1349, allocations: 4 kB / 479.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1349, allocations: 3.984 kB / 479.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.136, allocations: 0.7796 MB / 480.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1361, allocations: 4 kB / 480.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.1363, allocations: 43.91 kB / 480.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.3e-05/0.1364, allocations: 28.88 kB / 480.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1364, allocations: 8 kB / 480.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008761/0.1373, allocations: 1.284 MB / 481.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1373, allocations: 3.953 kB / 481.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.138, allocations: 0.5124 MB / 482.4 MB, free: 0 / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1382, allocations: 116.8 kB / 482.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.1382, allocations: 11.89 kB / 482.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1384, allocations: 15.98 kB / 482.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.418e-05/0.1385, allocations: 19.98 kB / 482.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.1385, allocations: 4.094 kB / 482.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.1388, allocations: 227.2 kB / 482.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1388, allocations: 0 / 482.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005065/0.1393, allocations: 92 kB / 482.8 MB, free: 15.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001195/0.1394, allocations: 99.17 kB / 482.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000716/0.1401, allocations: 379.1 kB / 483.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1401, allocations: 4.375 kB / 483.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003384/0.1405, allocations: 226.5 kB / 483.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006451/0.1411, allocations: 101.5 kB / 483.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.1428, allocations: 1.209 MB / 484.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1432, allocations: 0.8467 MB / 485.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.441e-05/0.1433, allocations: 27.44 kB / 485.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1433, allocations: 0 / 485.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Templates: time 0.0093/0.1526, allocations: 6.833 MB / 492.5 MB, free: 5.711 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pmCalcHelperMain.o] Error 1