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.0008186/0.000819, allocations: 93.31 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.0008492/0.0008493, 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.448/1.448, allocations: 223.2 MB / 242.2 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2284/0.2284, allocations: 38.1 MB / 331.5 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004661/0.0004661, allocations: 8.281 kB / 401.4 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 59.17 MB / 460.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.009491/0.1344, allocations: 7.738 MB / 468.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006405/0.1409, allocations: 3.292 MB / 471.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.1421, allocations: 55.62 kB / 471.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008825/0.143, allocations: 246.5 kB / 471.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.1446, allocations: 0.5717 MB / 472.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1457, allocations: 390.9 kB / 472.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002351/0.1481, allocations: 1.867 MB / 474.7 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.1497, allocations: 1.086 MB / 475.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007326/0.1504, allocations: 457.9 kB / 476.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000845/0.1513, allocations: 0.599 MB / 476.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.412e-05/0.1514, allocations: 44 kB / 476.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005505/0.1519, allocations: 279.5 kB / 477.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003184/0.1523, allocations: 327 kB / 477.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005044/0.1528, allocations: 0.5184 MB / 478 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.154, allocations: 1.274 MB / 479.2 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.154, allocations: 0 / 479.2 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.154, allocations: 4 kB / 479.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.154, allocations: 4 kB / 479.2 MB, free: 4.203 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.002399/0.1564, allocations: 1.215 MB / 480.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1565, allocations: 8.031 kB / 480.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006883/0.1572, allocations: 167.5 kB / 480.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.1586, allocations: 0.7973 MB / 481.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.036e-05/0.1587, allocations: 69.98 kB / 481.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.1589, allocations: 91.89 kB / 481.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.1607, allocations: 1.161 MB / 482.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.159e-05/0.1608, allocations: 3.938 kB / 482.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.844e-05/0.1609, allocations: 40 kB / 482.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.161, allocations: 61.97 kB / 482.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1627, allocations: 0.9524 MB / 483.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006246/0.169, allocations: 4.656 MB / 488.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.1701, allocations: 0.6878 MB / 489.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005835/0.1707, allocations: 350.4 kB / 489.5 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.1708, allocations: 12.73 kB / 489.5 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1708, allocations: 43.06 kB / 489.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.395e-06/0.1708, allocations: 0 / 489.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.005242/0.1761, allocations: 2.382 MB / 491.9 MB, free: 7.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1762, allocations: 137.1 kB / 492.1 MB, free: 6.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008795/0.1771, allocations: 0.6802 MB / 492.7 MB, free: 6.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.1771, allocations: 41.77 kB / 492.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.1775, allocations: 486.8 kB / 493.3 MB, free: 5.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.1777, allocations: 220.8 kB / 493.5 MB, free: 5.398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-05/0.1778, allocations: 69.67 kB / 493.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.178, allocations: 390.8 kB / 493.9 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004887/0.1785, allocations: 277.8 kB / 494.2 MB, free: 4.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006763/0.1792, allocations: 0.516 MB / 494.7 MB, free: 4.035 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003496/0.1827, allocations: 1.544 MB / 496.2 MB, free: 2.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1827, allocations: 0 / 496.2 MB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003104/0.1858, allocations: 1.418 MB / 497.7 MB, free: 0.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002999/0.1861, allocations: 315.9 kB / 498 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.1862, allocations: 8 kB / 498 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.1877, allocations: 442.9 kB / 498.4 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/0.1883, allocations: 147.8 kB / 498.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008932/0.1972, allocations: 6.234 MB / 0.493 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007784/0.198, allocations: 35.98 kB / 0.493 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-05/0.1981, allocations: 39.98 kB / 0.493 GB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.1981, allocations: 4 kB / 0.493 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002527/0.2006, allocations: 1.202 MB / 0.4942 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.2007, allocations: 8 kB / 0.4942 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.2021, allocations: 429.5 kB / 0.4946 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.2026, allocations: 147.8 kB / 0.4948 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007971/0.2106, allocations: 5.941 MB / 0.5006 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006384/0.2113, allocations: 43.83 kB / 0.5006 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-05/0.2113, allocations: 35.98 kB / 0.5006 GB, free: 1.23 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 (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0006455/0.212, allocations: 396.1 kB / 0.501 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.2121, allocations: 87.03 kB / 0.5011 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2804/0.4926, allocations: 0.744 MB / 0.5018 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.4926, allocations: 6.375 kB / 0.5018 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4926, allocations: 2.125 kB / 0.5018 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-05/0.4927, allocations: 4.516 kB / 0.5018 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/0.4968, allocations: 1.769 MB / 0.5036 GB, free: 54.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.4968, allocations: 1.156 kB / 0.5036 GB, free: 54.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000826/0.4977, allocations: 142.4 kB / 0.5037 GB, free: 54.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.4978, allocations: 23.75 kB / 0.5037 GB, free: 54.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-05/0.4979, allocations: 19.88 kB / 0.5038 GB, free: 54.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007453/0.4986, allocations: 1.284 MB / 0.505 GB, free: 52.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4986, allocations: 4.547 kB / 0.505 GB, free: 52.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.5006, allocations: 1.227 MB / 0.5062 GB, free: 52.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003387/0.501, allocations: 215.4 kB / 0.5064 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/0.5011, allocations: 17.55 kB / 0.5064 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.5015, allocations: 27.69 kB / 0.5065 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5017, allocations: 41.8 kB / 0.5065 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.5017, allocations: 18.45 kB / 0.5065 GB, free: 52.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007012/0.5024, allocations: 482.3 kB / 0.507 GB, free: 52.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5024, allocations: 0 / 0.507 GB, free: 52.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001694/0.5041, allocations: 412.9 kB / 0.5074 GB, free: 52.35 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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003053/0.5044, allocations: 138.7 kB / 0.5075 GB, free: 52.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003681/0.5081, allocations: 1.989 MB / 0.5094 GB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5081, allocations: 0 / 0.5094 GB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006811/0.5088, allocations: 447 kB / 0.5099 GB, free: 51.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.5103, allocations: 216.8 kB / 0.5101 GB, free: 51.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004067/0.5144, allocations: 2.671 MB / 0.5127 GB, free: 49.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009692/0.5154, allocations: 1.107 MB / 0.5138 GB, free: 48.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.5157, allocations: 64.28 kB / 0.5138 GB, free: 48.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.924e-06/0.5157, allocations: 4 kB / 0.5138 GB, free: 48.76 MB / 382.1 MB Notification: Performance of Templates: time 0.02989/0.5456, allocations: 18.87 MB / 0.5323 GB, free: 38.73 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++ -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_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