Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_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.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009052/0.0009054, allocations: 92.83 kB / 16.96 MB, free: 6.453 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.0008298/0.0008298, allocations: 180.4 kB / 17.84 MB, free: 6 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.312/1.312, allocations: 223.3 MB / 241.9 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.09 MB / 331.1 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.0003031, allocations: 8 kB / 400.7 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 59.17 MB / 459.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007495/0.1217, allocations: 7.548 MB / 467.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007155/0.1289, allocations: 4.791 MB / 472.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.13, allocations: 51.69 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008367/0.1384, allocations: 4.487 MB / 476.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002211/0.1407, allocations: 0.5168 MB / 477.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.1425, allocations: 407.3 kB / 477.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.1465, allocations: 2.565 MB / 480.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.1481, allocations: 1.023 MB / 481.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009633/0.1491, allocations: 0.5407 MB / 481.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.1501, allocations: 0.7123 MB / 482.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.1502, allocations: 48 kB / 482.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1505, allocations: 67.92 kB / 482.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003488/0.1508, allocations: 370.9 kB / 483 MB, free: 212 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.1511, allocations: 229.2 kB / 483.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.1522, allocations: 1.247 MB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1522, allocations: 3.938 kB / 484.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1522, allocations: 4 kB / 484.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.1523, allocations: 0 / 484.5 MB, free: 14.72 MB / 366.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.002514/0.1548, allocations: 1.246 MB / 485.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1548, allocations: 12.02 kB / 485.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003832/0.1552, allocations: 122.6 kB / 485.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.1568, allocations: 0.855 MB / 486.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.1569, allocations: 65.98 kB / 486.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.157, allocations: 91.91 kB / 486.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.1589, allocations: 1.222 MB / 488.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.159, allocations: 11.95 kB / 488.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.253e-05/0.1591, allocations: 32 kB / 488.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001887/0.1593, allocations: 73.95 kB / 488.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.1609, allocations: 1.011 MB / 489.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005834/0.1667, allocations: 4.441 MB / 493.6 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.1681, allocations: 0.8952 MB / 494.5 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006864/0.1688, allocations: 448.1 kB / 495 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.11e-05/0.1689, allocations: 16.5 kB / 495 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.1689, allocations: 43.12 kB / 495 MB, free: 3.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 3.657e-06/0.1689, allocations: 0 / 495 MB, free: 3.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006353/0.1753, allocations: 3.338 MB / 498.4 MB, free: 288 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.1754, allocations: 141.1 kB / 498.5 MB, free: 116 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008904/0.1763, allocations: 0.6803 MB / 499.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/0.1764, allocations: 41.73 kB / 499.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.1767, allocations: 475.4 kB / 499.7 MB, free: 14.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.177, allocations: 260.3 kB / 499.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.177, allocations: 16 kB / 500 MB, free: 14.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1772, allocations: 337.9 kB / 0.4886 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006384/0.1778, allocations: 369.8 kB / 0.4889 GB, free: 13.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007548/0.1786, allocations: 0.5939 MB / 0.4895 GB, free: 13.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005622/0.1842, allocations: 1.527 MB / 0.491 GB, free: 11.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.83e-06/0.1843, allocations: 0 / 0.491 GB, free: 11.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005147/0.1894, allocations: 2.052 MB / 0.493 GB, free: 9.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002406/0.1897, allocations: 282.4 kB / 0.4933 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.1897, allocations: 15.92 kB / 0.4933 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004058/0.1938, allocations: 1.051 MB / 0.4943 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/0.1943, allocations: 131.8 kB / 0.4944 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2571/0.4514, allocations: 9.22 MB / 0.5034 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008394/0.4523, allocations: 48.81 kB / 0.5035 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-05/0.4524, allocations: 40.08 kB / 0.5035 GB, free: 53.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.4525, allocations: 4.469 kB / 0.5035 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005692/0.4582, allocations: 1.836 MB / 0.5053 GB, free: 53.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.4582, allocations: 6.406 kB / 0.5053 GB, free: 53.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004303/0.4625, allocations: 0.9982 MB / 0.5063 GB, free: 53.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005866/0.4631, allocations: 138.7 kB / 0.5064 GB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/0.4775, allocations: 8.956 MB / 0.5152 GB, free: 48.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000672/0.4782, allocations: 33.5 kB / 0.5152 GB, free: 48.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.4783, allocations: 39.52 kB / 0.5152 GB, free: 48.52 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.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (65): * Single equations (assignments): 63 * 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 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006499/0.479, allocations: 409.8 kB / 0.5156 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.4792, allocations: 87.92 kB / 0.5157 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/0.4813, allocations: 1.256 MB / 0.5169 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4813, allocations: 13.88 kB / 0.5169 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4813, allocations: 1.562 kB / 0.517 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.4813, allocations: 5 kB / 0.517 GB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.4848, allocations: 2.414 MB / 0.5193 GB, free: 46.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.4848, allocations: 1.219 kB / 0.5193 GB, free: 46.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008024/0.4856, allocations: 162.3 kB / 0.5195 GB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004214/0.4861, allocations: 157.5 kB / 0.5196 GB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.995e-05/0.4861, allocations: 26.95 kB / 0.5196 GB, free: 46.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.489, allocations: 5.408 MB / 0.5249 GB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.489, allocations: 3.359 kB / 0.5249 GB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.4915, allocations: 1.862 MB / 0.5267 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003567/0.4918, allocations: 229.2 kB / 0.527 GB, free: 39.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4919, allocations: 19.81 kB / 0.527 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.4924, allocations: 38.41 kB / 0.527 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.4925, allocations: 64.31 kB / 0.5271 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.4926, allocations: 19.56 kB / 0.5271 GB, free: 39.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005582/0.4932, allocations: 479.3 kB / 0.5276 GB, free: 39.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4932, allocations: 0 / 0.5276 GB, free: 39.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001807/0.495, allocations: 456.1 kB / 0.528 GB, free: 39.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,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 (79): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001516/0.4952, allocations: 126.6 kB / 0.5281 GB, free: 39.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004322/0.4995, allocations: 2.59 MB / 0.5306 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4995, allocations: 1.125 kB / 0.5306 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.5005, allocations: 0.9197 MB / 0.5315 GB, free: 37.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.5017, allocations: 232.3 kB / 0.5318 GB, free: 37.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/0.5054, allocations: 2.989 MB / 0.5347 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007345/0.5062, allocations: 1.169 MB / 0.5358 GB, free: 34.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.5065, allocations: 76.67 kB / 0.5359 GB, free: 34.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5065, allocations: 4 kB / 0.5359 GB, free: 34.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02565/0.5321, allocations: 27.53 MB / 0.5628 GB, free: 6.754 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_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.ASM_ctrlAvCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAvCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAvCalcHelperMain.o] Error 1