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.0008639/0.0008641, allocations: 91.75 kB / 17.31 MB, free: 5.59 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.0009674/0.0009677, allocations: 182.4 kB / 18.21 MB, free: 5.191 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.457/1.457, allocations: 223.2 MB / 242.2 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.08 MB / 331.5 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003775, allocations: 10.16 kB / 401.4 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1395, allocations: 59.15 MB / 460.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.00988/0.1495, allocations: 7.987 MB / 468.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00967/0.1592, allocations: 5.155 MB / 473.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002261/0.1615, allocations: 55.62 kB / 473.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.1722, allocations: 4.676 MB / 478.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002237/0.1745, allocations: 485.7 kB / 478.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1759, allocations: 461.8 kB / 479.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004719/0.1806, allocations: 3.014 MB / 482.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002356/0.183, allocations: 1.148 MB / 483.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.1842, allocations: 0.5288 MB / 484 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.1854, allocations: 0.7354 MB / 484.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.1855, allocations: 52 kB / 484.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.1858, allocations: 59.94 kB / 484.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004166/0.1862, allocations: 378.8 kB / 485.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007182/0.187, allocations: 0.5418 MB / 485.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.1883, allocations: 1.243 MB / 487 MB, free: 12.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1883, allocations: 3.938 kB / 487 MB, free: 12.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1883, allocations: 0 / 487 MB, free: 12.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.338e-05/0.1883, allocations: 0 / 487 MB, free: 12.4 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.003328/0.1917, allocations: 1.234 MB / 488.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.481e-05/0.1917, allocations: 12.03 kB / 488.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00053/0.1923, allocations: 127.5 kB / 488.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.1942, allocations: 0.8864 MB / 489.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.1943, allocations: 62 kB / 489.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.1945, allocations: 91.97 kB / 489.4 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.1967, allocations: 1.226 MB / 490.6 MB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.1967, allocations: 11.84 kB / 490.7 MB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.813e-05/0.1968, allocations: 36 kB / 490.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/0.197, allocations: 77.95 kB / 490.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/0.199, allocations: 1.011 MB / 491.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006857/0.2059, allocations: 4.441 MB / 496.2 MB, free: 2.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.2075, allocations: 0.8969 MB / 497.1 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007356/0.2083, allocations: 452 kB / 497.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.467e-05/0.2083, allocations: 16.48 kB / 497.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.2084, allocations: 39.12 kB / 497.6 MB, free: 1.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 2.946e-06/0.2084, allocations: 0 / 497.6 MB, free: 1.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.007134/0.2155, allocations: 3.334 MB / 0.4892 GB, free: 13.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.2157, allocations: 145 kB / 0.4893 GB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009917/0.2167, allocations: 0.6803 MB / 0.49 GB, free: 13.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.459e-05/0.2168, allocations: 41.7 kB / 0.4901 GB, free: 13.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004496/0.2173, allocations: 475.3 kB / 0.4905 GB, free: 12.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.2175, allocations: 268.2 kB / 0.4908 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.2177, allocations: 77.67 kB / 0.4908 GB, free: 12.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.2179, allocations: 341.9 kB / 0.4912 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007065/0.2186, allocations: 369.8 kB / 0.4915 GB, free: 11.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009497/0.2195, allocations: 0.5978 MB / 0.4921 GB, free: 10.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008033/0.2276, allocations: 2.426 MB / 0.4945 GB, free: 8.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.2277, allocations: 4 kB / 0.4945 GB, free: 8.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.006001/0.2337, allocations: 2.052 MB / 0.4965 GB, free: 6.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002804/0.234, allocations: 286.2 kB / 0.4967 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.234, allocations: 11.94 kB / 0.4968 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004982/0.239, allocations: 1.031 MB / 0.4978 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006884/0.2397, allocations: 131.8 kB / 0.4979 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3252/0.5649, allocations: 9.231 MB / 0.5069 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009308/0.5659, allocations: 44.58 kB / 0.5069 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/0.566, allocations: 42.45 kB / 0.507 GB, free: 38.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.566, allocations: 4.531 kB / 0.507 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006211/0.5723, allocations: 1.847 MB / 0.5088 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/0.5723, allocations: 8.078 kB / 0.5088 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004775/0.5771, allocations: 0.9982 MB / 0.5098 GB, free: 38.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006049/0.5777, allocations: 131.3 kB / 0.5099 GB, free: 38.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01516/0.5929, allocations: 8.989 MB / 0.5187 GB, free: 35.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000791/0.5937, allocations: 37.89 kB / 0.5187 GB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.132e-05/0.5938, allocations: 40.25 kB / 0.5188 GB, free: 35.05 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 (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 {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0006766/0.5945, allocations: 406.2 kB / 0.5191 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.5947, allocations: 88.12 kB / 0.5192 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.5968, allocations: 1.257 MB / 0.5205 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.5969, allocations: 13.28 kB / 0.5205 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.5969, allocations: 2.625 kB / 0.5205 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.5969, allocations: 8.219 kB / 0.5205 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003896/0.6008, allocations: 2.413 MB / 0.5228 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.6008, allocations: 3.281 kB / 0.5228 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/0.6017, allocations: 164.5 kB / 0.523 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004534/0.6021, allocations: 151.5 kB / 0.5231 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.6022, allocations: 24.58 kB / 0.5232 GB, free: 32.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.6055, allocations: 5.411 MB / 0.5284 GB, free: 27.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6055, allocations: 1.656 kB / 0.5284 GB, free: 27.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.6083, allocations: 1.868 MB / 0.5303 GB, free: 26.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003714/0.6087, allocations: 231.2 kB / 0.5305 GB, free: 26.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.6088, allocations: 24.44 kB / 0.5305 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.6093, allocations: 37.78 kB / 0.5306 GB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.6095, allocations: 63.25 kB / 0.5306 GB, free: 26.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.753e-05/0.6095, allocations: 25.2 kB / 0.5306 GB, free: 26.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006487/0.6102, allocations: 482.3 kB / 0.5311 GB, free: 26.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6102, allocations: 1.375 kB / 0.5311 GB, free: 26.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001998/0.6122, allocations: 457.1 kB / 0.5315 GB, free: 26.01 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.0001787/0.6124, allocations: 130.6 kB / 0.5317 GB, free: 25.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004733/0.6171, allocations: 2.611 MB / 0.5342 GB, free: 24.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.6172, allocations: 4.062 kB / 0.5342 GB, free: 24.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.6182, allocations: 0.9237 MB / 0.5351 GB, free: 24.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.6197, allocations: 235.9 kB / 0.5353 GB, free: 24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.6234, allocations: 3.051 MB / 0.5383 GB, free: 22.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.6241, allocations: 1.167 MB / 0.5395 GB, free: 21.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.6243, allocations: 84.02 kB / 0.5395 GB, free: 21.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6243, allocations: 0 / 0.5395 GB, free: 21.14 MB / 382.1 MB Notification: Performance of Templates: time 0.02789/0.6522, allocations: 27.52 MB / 0.5664 GB, free: 10.2 MB / 398.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++ -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.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