Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008791/0.0008792, allocations: 95.39 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.001083/0.001084, allocations: 176.3 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.344/1.344, allocations: 223.2 MB / 241.8 MB, free: 312 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1731/0.1731, allocations: 38.09 MB / 331.1 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002908, allocations: 8 kB / 400.7 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1159, allocations: 59.17 MB / 459.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008718/0.1246, allocations: 7.451 MB / 467.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00778/0.1325, allocations: 5.037 MB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001108/0.1336, allocations: 47.69 kB / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009386/0.143, allocations: 5.373 MB / 477.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.1451, allocations: 0.5441 MB / 478.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.1465, allocations: 458.5 kB / 478.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004129/0.1507, allocations: 2.803 MB / 481.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001686/0.1524, allocations: 1.042 MB / 482.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.1534, allocations: 0.5797 MB / 483.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.1545, allocations: 0.7823 MB / 484 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.1546, allocations: 56 kB / 484 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.155, allocations: 127.9 kB / 484.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004459/0.1555, allocations: 438.7 kB / 484.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002885/0.1558, allocations: 249.1 kB / 484.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.1572, allocations: 1.469 MB / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1572, allocations: 0 / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1572, allocations: 0 / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1573, allocations: 0 / 486.3 MB, free: 12.88 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.003105/0.1604, allocations: 1.479 MB / 487.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1604, allocations: 8.031 kB / 487.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004151/0.1608, allocations: 146.3 kB / 487.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.1628, allocations: 1.019 MB / 488.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.1629, allocations: 69.98 kB / 489 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.163, allocations: 88 kB / 489.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.1651, allocations: 1.328 MB / 490.4 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.1652, allocations: 15.8 kB / 490.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.1653, allocations: 43.98 kB / 490.5 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002701/0.1656, allocations: 89.92 kB / 490.6 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.1675, allocations: 1.14 MB / 491.7 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006924/0.1745, allocations: 4.939 MB / 496.7 MB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.1759, allocations: 0.9674 MB / 497.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.1767, allocations: 0.5199 MB / 498.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.467e-05/0.1768, allocations: 24.64 kB / 498.2 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009361/0.1777, allocations: 0.61 MB / 498.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.314e-06/0.1777, allocations: 3.938 kB / 498.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008504/0.1862, allocations: 4.222 MB / 0.4912 GB, free: 11.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.1864, allocations: 174.9 kB / 0.4914 GB, free: 11.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.1875, allocations: 0.8333 MB / 0.4922 GB, free: 10.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.61e-05/0.1876, allocations: 41.7 kB / 0.4922 GB, free: 10.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003864/0.1879, allocations: 0.5151 MB / 0.4927 GB, free: 9.965 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.1882, allocations: 295.8 kB / 0.493 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.541e-05/0.1883, allocations: 16 kB / 0.493 GB, free: 9.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1884, allocations: 341.9 kB / 0.4934 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007413/0.1892, allocations: 489.7 kB / 0.4938 GB, free: 8.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009168/0.1901, allocations: 0.713 MB / 0.4945 GB, free: 8.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008735/0.191, allocations: 0.5691 MB / 0.4951 GB, free: 7.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.191, allocations: 4 kB / 0.4951 GB, free: 7.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.007794/0.1988, allocations: 2.931 MB / 0.4979 GB, free: 4.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002345/0.1991, allocations: 290.1 kB / 0.4982 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.1991, allocations: 8 kB / 0.4982 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00749/0.2066, allocations: 1.931 MB / 0.5001 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/0.2074, allocations: 143.7 kB / 0.5003 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2716/0.479, allocations: 11.51 MB / 0.5115 GB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008535/0.4799, allocations: 60.59 kB / 0.5116 GB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.48, allocations: 48.73 kB / 0.5116 GB, free: 39.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.48, allocations: 3.938 kB / 0.5116 GB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007716/0.4878, allocations: 2.705 MB / 0.5142 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-05/0.4878, allocations: 11.55 kB / 0.5143 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007319/0.4952, allocations: 1.848 MB / 0.5161 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006767/0.4959, allocations: 143.6 kB / 0.5162 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01612/0.512, allocations: 11.27 MB / 0.5272 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007802/0.5128, allocations: 66.02 kB / 0.5273 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.5129, allocations: 45.36 kB / 0.5273 GB, free: 34.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,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 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.0006242/0.5136, allocations: 444.5 kB / 0.5277 GB, free: 34.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.5137, allocations: 102.8 kB / 0.5278 GB, free: 34.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/0.5163, allocations: 1.652 MB / 0.5295 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.5163, allocations: 11.41 kB / 0.5295 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5163, allocations: 7.781 kB / 0.5295 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.5163, allocations: 3.984 kB / 0.5295 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.5202, allocations: 2.902 MB / 0.5323 GB, free: 31.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5203, allocations: 0 / 0.5323 GB, free: 31.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.5211, allocations: 174.3 kB / 0.5325 GB, free: 31.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.5222, allocations: 405.7 kB / 0.5329 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-05/0.5223, allocations: 23.64 kB / 0.5329 GB, free: 31.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.5269, allocations: 6.292 MB / 0.539 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5269, allocations: 3.375 kB / 0.539 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.5299, allocations: 2.302 MB / 0.5413 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003917/0.5303, allocations: 268.7 kB / 0.5415 GB, free: 22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.5305, allocations: 27.98 kB / 0.5416 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005219/0.531, allocations: 47.95 kB / 0.5416 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.5312, allocations: 64.91 kB / 0.5417 GB, free: 21.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.494e-05/0.5312, allocations: 31.98 kB / 0.5417 GB, free: 21.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007018/0.532, allocations: 0.5737 MB / 0.5423 GB, free: 21.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.532, allocations: 0 / 0.5423 GB, free: 21.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002027/0.534, allocations: 0.5469 MB / 0.5428 GB, free: 20.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,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_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * 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 {(2,100.0%) 2,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000974/0.535, allocations: 434.1 kB / 0.5432 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005516/0.5405, allocations: 3.221 MB / 0.5464 GB, free: 17.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.5405, allocations: 0 / 0.5464 GB, free: 17.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.542, allocations: 1.149 MB / 0.5475 GB, free: 16.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.5433, allocations: 272.1 kB / 0.5477 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.5474, allocations: 3.585 MB / 0.5512 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006493/0.548, allocations: 1.245 MB / 0.5525 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.5484, allocations: 87.41 kB / 0.5525 GB, free: 10.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5484, allocations: 0 / 0.5525 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Templates: time 0.04009/0.5885, allocations: 32.29 MB / 0.5841 GB, free: 10.62 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrolCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrolCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrolCalcHelperMain.o] Error 1