Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 89.81 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.001232/0.001232, allocations: 183.2 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.462/1.462, 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.1812/0.1812, allocations: 38.08 MB / 331.5 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003677, allocations: 14.56 kB / 401.4 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1516, allocations: 59.17 MB / 460.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009777/0.1614, allocations: 6.326 MB / 466.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00967/0.1712, allocations: 4.833 MB / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.1723, allocations: 39.75 kB / 471.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009355/0.1816, allocations: 4.588 MB / 476.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001686/0.1833, allocations: 406.4 kB / 476.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008312/0.1842, allocations: 251.7 kB / 477 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002913/0.1871, allocations: 2.296 MB / 479.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001467/0.1886, allocations: 0.8445 MB / 480.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007221/0.1893, allocations: 382.4 kB / 480.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007608/0.1901, allocations: 0.4981 MB / 481 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-05/0.1902, allocations: 32 kB / 481 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003148/0.1905, allocations: 119.8 kB / 481.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003213/0.1909, allocations: 279.2 kB / 481.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.1913, allocations: 375.9 kB / 481.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007915/0.1921, allocations: 0.7987 MB / 482.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1921, allocations: 0 / 482.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1921, allocations: 0 / 482.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.1921, allocations: 0 / 482.6 MB, free: 0.918 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001844/0.1939, allocations: 0.8884 MB / 483.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.194, allocations: 12.03 kB / 483.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004647/0.1945, allocations: 104 kB / 483.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.1956, allocations: 0.5996 MB / 484.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1957, allocations: 86.97 kB / 484.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.1958, allocations: 56 kB / 484.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1971, allocations: 0.8138 MB / 485.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.1972, allocations: 3.938 kB / 485.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.1972, allocations: 24 kB / 485.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001506/0.1974, allocations: 53.28 kB / 485.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009501/0.1984, allocations: 0.5867 MB / 485.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004154/0.2025, allocations: 2.946 MB / 488.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008282/0.2034, allocations: 434.1 kB / 489.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.2037, allocations: 222.3 kB / 489.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.2037, allocations: 16.59 kB / 489.4 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.2043, allocations: 330.5 kB / 489.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.2043, allocations: 0 / 489.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003348/0.2076, allocations: 2.048 MB / 491.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.393e-05/0.2077, allocations: 144.4 kB / 491.9 MB, free: 7.094 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.2082, allocations: 445.8 kB / 492.3 MB, free: 6.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2083, allocations: 37.7 kB / 492.4 MB, free: 6.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.2085, allocations: 327.9 kB / 492.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.2087, allocations: 161.8 kB / 492.8 MB, free: 6.117 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.2088, allocations: 61.69 kB / 492.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2089, allocations: 358.8 kB / 493.3 MB, free: 5.691 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.2093, allocations: 237.2 kB / 493.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/0.2098, allocations: 397.6 kB / 493.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002782/0.2125, allocations: 1.328 MB / 495.2 MB, free: 3.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2126, allocations: 0 / 495.2 MB, free: 3.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001809/0.2144, allocations: 0.9785 MB / 496.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.948e-05/0.2144, allocations: 33.7 kB / 496.2 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.2145, allocations: 4 kB / 496.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008972/0.2154, allocations: 309.7 kB / 496.5 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009663/0.2163, allocations: 175.7 kB / 496.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/0.2226, allocations: 4.841 MB / 0.4898 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.223, allocations: 23.98 kB / 0.4898 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.2231, allocations: 28.08 kB / 0.4898 GB, free: 12.89 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_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004634/0.2236, allocations: 299.3 kB / 0.4901 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.826e-05/0.2236, allocations: 55.34 kB / 0.4902 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.2249, allocations: 0.8054 MB / 0.491 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2249, allocations: 4 kB / 0.491 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2249, allocations: 4 kB / 0.491 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2249, allocations: 3.984 kB / 0.491 GB, free: 11.66 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.2273, allocations: 1.667 MB / 0.4926 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2273, allocations: 4.062 kB / 0.4926 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.2286, allocations: 187.9 kB / 0.4928 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002418/0.2288, allocations: 86.45 kB / 0.4929 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.2289, allocations: 12 kB / 0.4929 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003147/0.2321, allocations: 3.957 MB / 0.4967 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2321, allocations: 0 / 0.4967 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.2338, allocations: 1.13 MB / 0.4978 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.2341, allocations: 176.4 kB / 0.498 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.839e-05/0.2342, allocations: 15.94 kB / 0.498 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.2345, allocations: 31.86 kB / 0.4981 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.172e-05/0.2346, allocations: 31.95 kB / 0.4981 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.2346, allocations: 16 kB / 0.4981 GB, free: 3.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000414/0.235, allocations: 319.1 kB / 0.4984 GB, free: 3.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.235, allocations: 0 / 0.4984 GB, free: 3.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007867/0.2358, allocations: 160 kB / 0.4986 GB, free: 3.254 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0001757/0.236, allocations: 111.2 kB / 0.4987 GB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.2379, allocations: 0.9834 MB / 0.4996 GB, free: 2.109 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2379, allocations: 0 / 0.4996 GB, free: 2.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.2387, allocations: 0.6344 MB / 0.5002 GB, free: 1.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007961/0.2395, allocations: 130.7 kB / 0.5004 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2576/0.4971, allocations: 2.132 MB / 0.5024 GB, free: 55.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000628/0.4978, allocations: 0.979 MB / 0.5034 GB, free: 54.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.498, allocations: 42.86 kB / 0.5034 GB, free: 54.81 MB / 382.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4981, allocations: 0 / 0.5034 GB, free: 54.81 MB / 382.1 MB Notification: Performance of Templates: time 0.02307/0.5211, allocations: 14.58 MB / 0.5177 GB, free: 50.41 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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_Y_DCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_DCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_DCalcHelperMain.o] Error 1