Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009549/0.0009551, allocations: 91.95 kB / 16.95 MB, free: 5.641 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.001353/0.001353, allocations: 184 kB / 17.85 MB, free: 5.305 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.307/1.307, allocations: 223.2 MB / 241.9 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.09 MB / 331.1 MB, free: 8.586 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.000313, allocations: 8.625 kB / 400.7 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1079, allocations: 59.16 MB / 459.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008311/0.1163, allocations: 7.326 MB / 467.2 MB, free: 12 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.1219, allocations: 3.134 MB / 470.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008819/0.1228, allocations: 51.69 kB / 470.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007568/0.1236, allocations: 258.2 kB / 470.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.1252, allocations: 0.6219 MB / 471.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.1263, allocations: 371.4 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001654/0.1279, allocations: 1.586 MB / 473.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.1293, allocations: 0.968 MB / 474.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006727/0.13, allocations: 454 kB / 474.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008171/0.1308, allocations: 0.5837 MB / 475.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/0.1309, allocations: 44 kB / 475.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005656/0.1315, allocations: 271.5 kB / 475.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003446/0.1319, allocations: 327 kB / 475.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.1321, allocations: 225.1 kB / 476 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1333, allocations: 1.278 MB / 477.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1333, allocations: 4 kB / 477.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1333, allocations: 4 kB / 477.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1334, allocations: 0 / 477.3 MB, free: 5.797 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.00239/0.1358, allocations: 1.23 MB / 478.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1358, allocations: 8.031 kB / 478.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006422/0.1365, allocations: 162.5 kB / 478.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.1377, allocations: 0.7693 MB / 479.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/0.1378, allocations: 61.98 kB / 479.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.138, allocations: 95.86 kB / 479.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.1398, allocations: 1.161 MB / 480.8 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.1398, allocations: 3.984 kB / 480.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-05/0.1399, allocations: 36 kB / 480.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001073/0.14, allocations: 61.92 kB / 480.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.1416, allocations: 0.9485 MB / 481.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005937/0.1476, allocations: 4.648 MB / 486.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.1487, allocations: 0.6938 MB / 487.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005461/0.1493, allocations: 348.1 kB / 487.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.829e-05/0.1493, allocations: 16.53 kB / 487.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.1494, allocations: 43.06 kB / 487.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.536e-06/0.1494, allocations: 0 / 487.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.004655/0.1541, allocations: 2.37 MB / 490 MB, free: 8.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.1542, allocations: 133.1 kB / 490.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009023/0.1551, allocations: 0.6762 MB / 490.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.1551, allocations: 37.7 kB / 490.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.1555, allocations: 490.9 kB / 491.3 MB, free: 7.262 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.1557, allocations: 216.8 kB / 491.5 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.1557, allocations: 20 kB / 491.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1559, allocations: 390.7 kB / 491.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.1564, allocations: 273.8 kB / 492.2 MB, free: 6.371 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.157, allocations: 0.5082 MB / 492.7 MB, free: 5.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/0.1593, allocations: 0.8218 MB / 493.5 MB, free: 4.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1593, allocations: 0 / 493.5 MB, free: 4.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002901/0.1622, allocations: 1.41 MB / 494.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002388/0.1625, allocations: 311.8 kB / 495.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.1625, allocations: 8 kB / 495.2 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.1639, allocations: 458.9 kB / 495.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/0.1645, allocations: 155.7 kB / 495.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008663/0.1731, allocations: 6.216 MB / 0.4903 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.1739, allocations: 43.89 kB / 0.4903 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.404e-05/0.174, allocations: 35.98 kB / 0.4904 GB, free: 11.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.174, allocations: 4 kB / 0.4904 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002313/0.1763, allocations: 1.202 MB / 0.4915 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1763, allocations: 4 kB / 0.4915 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.1776, allocations: 429.7 kB / 0.4919 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.1781, allocations: 147.7 kB / 0.4921 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007613/0.1858, allocations: 5.914 MB / 0.4979 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006419/0.1864, allocations: 39.92 kB / 0.4979 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.546e-05/0.1865, allocations: 39.98 kB / 0.4979 GB, free: 3.812 MB / 382.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006462/0.1872, allocations: 396.8 kB / 0.4983 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.1873, allocations: 79.05 kB / 0.4984 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.1887, allocations: 0.7419 MB / 0.4991 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.1887, allocations: 8 kB / 0.4991 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1887, allocations: 0 / 0.4991 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.1887, allocations: 4.078 kB / 0.4991 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.1914, allocations: 1.786 MB / 0.5009 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1914, allocations: 4 kB / 0.5009 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006709/0.1921, allocations: 139.7 kB / 0.501 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.203e-05/0.1922, allocations: 28.91 kB / 0.501 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.1923, allocations: 19.98 kB / 0.5011 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2397/0.432, allocations: 1.28 MB / 0.5023 GB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4321, allocations: 3.141 kB / 0.5023 GB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.4342, allocations: 1.217 MB / 0.5035 GB, free: 52.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.4346, allocations: 213.2 kB / 0.5037 GB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.549e-05/0.4347, allocations: 14.06 kB / 0.5037 GB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.4351, allocations: 33.58 kB / 0.5037 GB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.4352, allocations: 43.05 kB / 0.5038 GB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.4352, allocations: 16.73 kB / 0.5038 GB, free: 52.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006974/0.4359, allocations: 470.3 kB / 0.5042 GB, free: 51.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.436, allocations: 3.281 kB / 0.5043 GB, free: 51.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4376, allocations: 409.5 kB / 0.5046 GB, free: 51.97 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * 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 (66): * Single equations (assignments): 64 * 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.0002738/0.4379, allocations: 147.2 kB / 0.5048 GB, free: 51.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00346/0.4413, allocations: 1.981 MB / 0.5067 GB, free: 51.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4413, allocations: 0 / 0.5067 GB, free: 51.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006601/0.442, allocations: 450.1 kB / 0.5071 GB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.4432, allocations: 211.1 kB / 0.5073 GB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.447, allocations: 2.609 MB / 0.5099 GB, free: 50.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/0.4477, allocations: 1.116 MB / 0.511 GB, free: 49.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.4479, allocations: 64.23 kB / 0.511 GB, free: 49.29 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4479, allocations: 0 / 0.511 GB, free: 49.29 MB / 382.1 MB Notification: Performance of Templates: time 0.02785/0.4758, allocations: 18.91 MB / 0.5295 GB, free: 40.81 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAvCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAvCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAvCalcHelperMain.o] Error 1